How to migrate all URLs in svn:externals properties across a repository?

后端 未结 6 704
花落未央
花落未央 2020-12-06 01:17

We are in the process of moving our SVN repositories from one machine to another one, and with it will come a new domain name for the new repo. The problem is, that within

6条回答
  •  渐次进展
    2020-12-06 02:03

    I'd use SvnDumpTool for this. It has exactly what you're looking for:

    svndumptool transform-prop svn:externals "(\S*) (|-r ?\d* ?)http://oldserver.net(/\S*)" "\2\3 \1" source.dumpfile source-fixed-externals.dumpfile
    

    This fixes up each external to the subversion 1.5 format, and uses relative URLs.

    So svn:externals like:

    external/libraryA svn://oldserver.net/repo/libraryA
    

    become:

     /repo/libraryA external/libraryA
    

    using server root relative URLs.

提交回复
热议问题