svndumptool and svn:externals

103 views
Skip to first unread message

MOKRANI Rachid

unread,
Apr 20, 2015, 11:26:06 AM4/20/15
to us...@subversion.apache.org
Hi,

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 ?

Many thanks in advance for any help.
Regards.

__________________________
Avant d'imprimer, pensez à l'environnement ! Please consider the environment before printing !
Ce message et toutes ses pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation non conforme à sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. IFP Energies nouvelles décline toute responsabilité au titre de ce message. This message and any attachments are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. IFP Energies nouvelles should not be liable for this message.
__________________________

Ryan Schmidt

unread,
Apr 21, 2015, 4:22:48 PM4/21/15
to MOKRANI Rachid, Subversion Users

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 all
Reply to author
Forward
0 new messages