Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

svn switch --relocate not persisting

Tags:

svn

We have moved our subversion repository to a different server. I have run svn swtich --relocate to change my development workstation repository to the new location.

The problem is that it looks like it works as there is no error message reported. But when I check the location of the repository after the command it has not updated.

Does anyone know what the cause of this might be or how to troubleshoot the problem?

I am running on XP with a user that has local administrator rights.

like image 464
Joel Cunningham Avatar asked Feb 28 '23 22:02

Joel Cunningham


1 Answers

I was running the following command.

svn switch --relocate svn://oldrepositry/trunk svn://newrepository/trunk

I found that running this command I was able to persist the relocation.

svn switch --relocate svn://oldrepositry svn://newrepository

I did not have the whole repository checked out, just trunk.

This article may shed some light on why the first command silently fails. It suggests the from url being longer than the 'Repository Root' (which you can find using 'svn info') can cause this issue.

http://archives.devshed.com/forums/development-94/new--svn-switch---relocate-silently-fails-1264627.html

like image 194
Joel Cunningham Avatar answered Mar 07 '23 18:03

Joel Cunningham