How to import project into multi-project subversion repo?

I migrated from Eclipse STS a few weeks ago and most of the things are much better in IDEA (version 12 currently), except Subversion.
I created a new IDEA project, which holds several modules of migrated Eclipse projects (all of them using .idea structure and .iml files for the modules and are connected to svn).
Now I need to import this IDEA project into svn. The svn repo is a multi-project repository of scheme:

repo_toplevel
  - project1
     - branches
     - tags
     - trunk
  - project2
     - branches
     - tags
     - trunk
  - ...

So I tried with VCS>Import, selected the Repository (which is the repo_toplevel dir), selected the IDEA project directory and proceeded. Not successful:
  - IDEA imported everything without asking me what to commit (for sure, I do not want to have the "out" folder in svn)
  - IDEA imported into the toplevel repository directory

Eclipse compared to this is ways better. There I click on Share Project > Subversion > Select Repo > Eclipse asks what kind of repo it is (i select multi-project layout) > I share.

In IDEA, VCS>Import is useless so far for me if thats the only way to import into svn.

Any help is greatly appreciated.

0
3 comments
Avatar
Irina Chernushina

Hello Robert,

- Import into Subversion indeed only takes directory that you passes and calls "svn import"
- You can alternatively use "Share Project" (available only if project is not versioned at all yet) or "Share Directory" actions (selecting each time a directory that should be a root of repository project)
Share Directory action will import a directory recursively and checkout it "back", so you will have working copy. If you just used import, you will have to check out after to continue work.

I'm afraid I don't understand the way import might work in this case, do you suggest that IDEA should offer an alternative of importing module-by module? Maybe it make sense to create a feature request for it in our tracker?

0

In Eclipse if you initially share a project you got the opportunity to select what kind of SVN repository it is.
If you select "Single-Project Layout", you can share multiple projects into separate svn dirs of the same svn repository.

e.g.

repo_root
  project1/
    trunk
    branches
    tags
  project2/
    trunk
    branches
    tags

See screenshot.

That feature is missing in IDEA (or I didn't find it, yet)



Attachment(s):
eclipse_team_share_svn_layouts.png
0
0

Please sign in to leave a comment.