SVN - How do you share a project?

I'm not sure if this is a problem or just something I'm not getting; but if you have a new project on a PC, how do I get it into Subversion, using IDEA.

I thought I had to just share the directory, but that doesn't appear to do anything. So I tried just importing the project, which created all the files on the repository, but didn't create any of the .svn folders it needs to link the files to the repo.

I'm using Diana #8418

10 comments
Comment actions Permalink

Please note - I have not tried importing a project into svn using Idea, but I do use Idea to work with projects already in subversion.

With most subversion clients the svn command line, TortiseSVN for Windows, importing a project a directory hierarchy into subversion and placing it into revision control does not transform the local filesystem copy of the project into a subversion 'working copy'. The idea here is to be completely non intrusive, altering nothing on the original.

After the project is stored inside subversion, the next step is to check out a working copy from the repository - I have done this using Idea. Idea does not display the 'hidden' .svn directories in the project view.

For general not Idea specific, subversion information, take a look at http://subversion.tigris.org - there are links from there to the 'SVN Book' and the mailing list archives.

Edited by: Dave Levitt on Jun 4, 2008 8:51 AM parenthetical remarks translated to links

Edited by: Dave Levitt on Jun 4, 2008 8:52 AM

0
Comment actions Permalink

Rayz wrote:

I'm not sure if this is a problem or just something I'm not getting; but if you have a new project on a PC, how do I get it into Subversion, using IDEA.

I thought I had to just share the directory, but that doesn't appear to do anything. So I tried just importing the project, which created all the files on the repository, but didn't create any of the .svn folders it needs to link the files to the repo.

You need to check the files back out again in order to associate them
with the vcs.

N.

0
Comment actions Permalink

It's because of IDEA's sharing feature is broken http://jetbrains.net/jira/browse/IDEADEV-17633

0
Comment actions Permalink

... and seems to have been broken for quite some time ... :(

0
Comment actions Permalink

The problem is that the Share Directory command doesn't actually add anything to the repository.

0
Comment actions Permalink

Oddly enough, the Subclipse plugin (written by Tigris) does convert the local copy into an SVN working copy ....

.. and the IDEA plugin doesn't even add files to the repository.


Idea does not display the 'hidden' .svn directories in the project view.

I'm actually looking for them in Windows Explorer ... :)

Definitely broken.

Edited by: Rayz on Jun 4, 2008 6:11 PM

0
Comment actions Permalink

This is indeed unintuitive. It's a weird process : import into subversion, then you have to export to a new folder (the current one will say it already has these files/directories when you try to check out).
The other option is to add all the files (after importing the project) using the subverion->add menu then delete the project from the repository and updating the current project.
Both approaches seems convoluted, weird and uncharacteristic of Intellij's (usually) great workflows.

0
Comment actions Permalink

Strangely enough, there is an option to share a project and according to the help page, it does exactly what we're asking for here. It just doesn't seem to work.

The easiest work around I found, was to use Eclipse to share the project and then just edit the files in IDEA.

0
Comment actions Permalink

Hello all,
I've just fixed the problem with "Share Directory" action. Hope it will be ok in the next EAP.

0
Comment actions Permalink

You star!!! ... :)

Thank you!

0

Please sign in to leave a comment.