• 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:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

Moved SVN Repository To New Server

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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
Mac OS X IntelliJ IDE Chrome
  • 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.
 
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic