![why](/static/img/x1mno0Ukhc-600.jpeg)
We just moved some of our subversion repositories to a new server and with it changed the URL’s. Now, in order to change any existing checkout version to grab updates from the new subversion server we issued the simple “switch” command from subversion as in:
svn sw svn://svn.domain.com/trunk .
The problem with this was that the system complained with:
svn: 'svn://svn.domain.com/trunk' is not the same repository as 'svn://svn.newdomain.com/trunk'
The correct syntax to relocate any existing checkout copy is to use the “–relocate” switch as in:
svn sw --relocate svn://svn.domain.com/trunk svn://svn.newdomain.com/trunk
And we are back in business…