tags:

views:

3976

answers:

2

I am moving my Subversion repository from one machine to another. I have a few scattered working copies on various machines, and I have found that I can easily switch the working copies from the old server to the new one with the following command:

svn --relocate svn://oldServer/repo svn://newServer/repo

However, on one of my machines, I use Eclipse with Subclipse, and I don't like to use command-line SVN on my Eclipse projects. My question is whether it is possible to switch SVN repositories from within Eclipse using either Subclipse or Subversive.

A: 

Yes it is. Use the "Team->Switch..." right-click-dialog on the project, you want to move.

Kosi2801
Does switch work between two different repositories?
CaptainAwesomePants
Have never tried. But since the new repo should have the same history as the old one and you do the switch just by changing the URL it should work without problems.
Kosi2801
It does not seem to work that way. I suspect that it is for the same reason that a normal "svn switch" doesn't work without the --relocate flag.
CaptainAwesomePants
+4  A: 

I think you need to go into your 'repository browser' perspective there you right click your current repository and 'relocate' it to another domain.

Luke
This worked perfectly on the box I had running Subclipse, and something very similar worked on the box with Subversive. The trick on Subversive turned out to be modifying the "location properties" in the repository browser. Thanks very much!
CaptainAwesomePants