Subversion: Switch to a new location

Development,open source 11 January 2010 | 4 Comments

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…

Tagged in ,

4 Responses on “Subversion: Switch to a new location”

  1. This website is a walk-through for all of the data you wanted about this and didn’t know who to ask. Look here, and you’ll truly discover it.

  2. Thanks to your nice blog. I appreciate your writing.

  3. Emma Bring says:

    Takers plus 10,000 other movies free! http://bit.ly/freeflix

  4. Sachiel says:

    Do you get a lot of spam here? I have a similar blog on a related topic and I get TONS of spam, dunno what to do about it.

Leave a Reply