Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
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.
svn help relocate
for more information.
–
–
–
–
–
–
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
Go to the working copy's root folder
Right Click, Click TortoiseSVN Submenu, Click Relocate.
Enter the new path
I had changed my svn server to force redirect everything from HTTP to HTTPS (and it could have been a redirect to any other URL), and I noticed that this svn relocate command was causing lots of problems with externals. Fortunately I found that the easiest thing was to just do an svn update and due to the redirect of the svn server, it updated all the URLs store in the local working copy, including the externals.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.