Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN - Change working copy to point at new svn path

I've got a SVN Repository that has moved to a new address/path. However, I've got a working copy with uncommitted source code still pointing to the old (now invalid) repository path. How do you change a working copy to point at a new repository?

like image 274
quano Avatar asked Jan 30 '10 02:01

quano


People also ask

How do I switch from one branch to another in svn?

To switch back, just provide the URL to the location in the repository from which you originally checked out your working copy: $ svn switch http://svn.red-bean.com/repos/trunk/vendors . U myproj/foo. txt U myproj/bar.

Where does the Subversion working copy reside?

As mentioned, the working copy meta/state-data lives in the hidden (by default) . svn directories. While the meta data is pretty small, for each file in the working copy, there is a working copy baseline. This will simply double the disk space consumed for any file that lives in the repository.


2 Answers

svn switch --relocate is deprecated as of version 1.7 of subversion. Use the svn relocate command instead.

It takes either FROM-PREFIX TO-PREFIX [PATH...] or TO-URL as arguments.

See

svn help relocate

for more information.

like image 152
Michael Krebs Avatar answered Sep 26 '22 00:09

Michael Krebs


Use the svn switch command with the --relocate command line option.

like image 41
Greg Hewgill Avatar answered Sep 23 '22 00:09

Greg Hewgill