Relocate a Subversion project


From IDEA how do I relocate/switch an exisiting subversion project when the
sysadmin has moved the repository to another server? i.e. the svn server
name has changed.

- Richard


4 comments

Richard Osbaldeston wrote:

From IDEA how do I relocate/switch an exisiting subversion project when
the sysadmin has moved the repository to another server? i.e. the svn
server name has changed.


I haven't used the IDEA SVN integration, but the appropriate svn command
would be "svn switch". Is there a Switch command somewhere in the
Subversion menu perhaps? Or maybe in the Subversion submenu of your
project folder's context menu in the Project pane?

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0

Hello Gordon,

I don't see anything like that, which is why I was asking. Before IDEa 5.0
I was using TortoiseSvn, but I've found that using Tortoise on an IDEA svn
directory tends to mess things up.. the two don't play nice so I dont know
whether the command line svn would be any better. Maybe I just need to create
a new project, but how to checkin my outstanding work now the old server
has gone? This was well planned.

- Richard

Richard Osbaldeston wrote:

>> From IDEA how do I relocate/switch an exisiting subversion project
>> when the sysadmin has moved the repository to another server? i.e.
>> the svn server name has changed.
>>

I haven't used the IDEA SVN integration, but the appropriate svn
command would be "svn switch". Is there a Switch command somewhere in
the Subversion menu perhaps? Or maybe in the Subversion submenu of
your project folder's context menu in the Project pane?

Ciao,
Gordon



0

Richard Osbaldeston wrote:

I don't see anything like that, which is why I was asking. Before IDEa
5.0 I was using TortoiseSvn, but I've found that using Tortoise on an
IDEA svn directory tends to mess things up.. the two don't play nice so
I dont know whether the command line svn would be any better. Maybe I
just need to create a new project, but how to checkin my outstanding
work now the old server has gone? This was well planned.


Well, I was going to say that I had discovered how to do this. I thought
you could use the Version Control>Update Project command and change the
repository URL in the resultant dialog (it says Update or Switch). But
it seems that it doesn't allow you to type in a new URL and only allows
you to select a new location within the original repository.

I guess you'll have to try using the svn commandline or TortoiseSVN to
switch. I would suggest shutting down IDEA before doing so, just to be safe.

Please file an issue at http://www.jetbrains.net/jira/ for this problem.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://www.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: (416) 933-5046 | Fax: (416) 933-5001

0

Just a warning to anybody else who may be tempted to hack it. I tried quitting
IDEA and editing the project files ]]>.i?? to change the server names
in these xml files. Next I tried greping and editing all the svn entries
config files under the project directory to correct the server names here
too.

At the end of all that hackery the project was knackered, IDEA was happy
enough, but trying to do anything with subversion would give me checksum
errors and spurious errors about my local folders already exiting.. very
messed up even after forcing svn cleanups. Its not worth trying to be celver
here, I had to create a new project, check out the code from the new repo
(well the old one with a new name) and use a 3rd party merge tool to synchronise
my outstanding changes.

- Richard


0

Please sign in to leave a comment.