This week's book giveaway is in the General Computing forum.
We're giving away four copies of Learning Regular Expressions and have Ben Forta on-line!
See this thread for details.
Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Moved SVN Repository To New Server  RSS feed

 
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!