File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Moved SVN Repository To New Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Moved SVN Repository To New Server" Watch "Moved SVN Repository To New Server" New topic
Author

Moved SVN Repository To New Server

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Today I moved a rather large subversion repos from our old server to a new server. The URL is now different and I'm wondering if there is a simple way to point existing checked out stuff to the new url location. Will the switch command work in this case? I asking before I try it because I don't want to jack anything up.

Thanks.


GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Tried the following and I got no errors but when I do an svn update, it is still looking at the old server.

svn switch --relocate svn+ssh://gdboling@oldserver/var/svn/repos/project/trunk svn+ssh://gdboling@newserver/home/svn/repos/project/trunk
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I removed the 'gdboling@' from the URL's and when I run the command it asks for the password to the new server. But then I get this error.

svn: The repository at 'svn+ssh://newserver/home/svn/repos/project/trunk' has uuid '67c3b32d-0b90-4e6f-a96e-dced573cc65b', but the WC has 'de81da0c-c016-4476-abf5-1d7ab34bc7f0'
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I figured it out. I had to use the svnadmin setuuid to give the new server the old server's uuid. Now the switch worked just fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Moved SVN Repository To New Server