Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

Using TortoiseSVN

  1. Right click on working copy and select 'SVN Switch...'
  2. On 'Switch to branch' form Select new SVN path

Using Command

  1. Open console
  2. Navigate to the working copy cd [working copy path]
  3. Write the command svn relocate [new url]

To be more precise

svn switch --relocate [complete url of the old repo] [complete url of the new repo] 

For example:

svn switch --relocate  http://svn.repo.com:9880/website/branches  http://svnrepo.com/web/branches 

Using TortoiseSVN tortoisesvn docs

  1. Go To working copy roots
  2. Click Relocate.
  3. Enter The new exist path

Very Simple :

Step 1: Open command prompt / terminal and set workpath

Step 2: Execute this line svn switch --relocate http://newurl

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top