Search code examples
svntortoisesvnvisualsvnsvn-externals

Changing svn repository url in externals property


I'm moving my repository to a new location, but I have folders with the (same) repository URL hard-coded in the externals properties. e.g:
old URL: https://OldLocation.Domain/svn/
new URL: https://NewLocation.Domain/svn/

How can I change the old repository URL to the new one? simply editing the property doesn't work.


Solution

  • You should use relative externals(available since SVN 1.5):

    either use "../" as a relative to the current path or

    use "^/" relative to the root of your repository.

    You also may has to delete (or move away) the current content of the folder with the external, so that an update can write the data to disk (remember: SVN will not overwrite existing files)