You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by MOKRANI Rachid <ra...@ifpen.fr> on 2015/04/20 13:56:40 UTC

svndumptool and svn:externals

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.
__________________________

Re: svndumptool and svn:externals

Posted by Ryan Schmidt <su...@ryandesign.com>.
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.