Win a copy of TDD for a Shopping Website LiveProject this week in the Testing 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Moved SVN Repository To New Server

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
please buy this thing and then I get a fat cut of the action:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic