On Apr 20, 2015, at 6:56 AM, MOKRANI Rachid wrote:

> I moved my SVN server, and now I need to change our svn:externals path.
> 
> I saw that svndumptool can help me to do that, but I don't know exactly the 
> syntax command to run.
> 
> 
> My old SVN server is:
> http://my_old_server/
> 
> I can access to my SVN project with the URL : 
> http://my_old_server/R11/MY_PROJECT
> 
> 
> Name Value
> svn:externals AA http://my_old_server/R11/MY_PROJECT/AA
>               BB http://my_old_server/R11/MY_PROJECT/BB
> 
> 
> 
> 
> New server :
> https://my_new_server/
> Now I can access to my SVN project with the URL : 
> http://my_new_server/svn/MY_PROJECT
> 
> Need to change my svn:externals path to:
> Name Value svn:externals      AA http://my_new_server/svn/MY_PROJECT/AA
>                               BB http://my_new_server/svn/MY_PROJECT/BB
> 
> 
> 
> 
> 
> Is the following command is correct ? Or what is exactly the good syntax.
> 
> svndumptool.py transform-prop svn:externals '^(\S+) 
> http://my_old_server/R11(\S+)' '^\1 https://my_new_server/svn/\2'  SVN.dump   
> SVN_ext.dump
> 
> and/or 
> 
> svndumptool.py transform-prop svn:externals "(\S*) (|-r ?\d* 
> ?)http://my_old_server/R11(/\S*)" "\2\3 \1"   SVN.dump   SVN_ext.dump
> 
> other ?

If you have externals that refer to your own repository by its absolute URL, 
then I recommend you switch those to the "new" (as of Subversion 1.5) relative 
URL externals syntax so that you never have to do this again even if you change 
repository locations again in the future.

Reply via email to