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?
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.
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.
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.
Use the svn switch
command with the --relocate
command line option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With