[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svndumptool and svn:externals

From: Ryan Schmidt <subversion-2015_at_ryandesign.com>
Date: Tue, 21 Apr 2015 15:21:49 -0500

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.
Received on 2015-04-21 22:22:48 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.