website stat

How to change working path on a SVN repository

Suppose you have a working copy (WC) of your repository. Its working path (or simply PATH) is where the main repository lives. It turns out to be the server you used during your first checkout, ie, $ svn checkout http://some.server.com

Now imagine you’ve changed from hosting provider, copied your SVN repository (using my advices on that matter :-) and now you’d like to simply change the working PATH of your working copy to point out to the new domain. Dead easy:

$ svn switch --relocate OLDURL NEWURL

P.S. - This tip was kindly provided by sabor (#svn @ Freenode.org). Thank you :-)


No Responses to “How to change working path on a SVN repository”

Comments are closed.