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

后端 未结 6 693
花落未央
花落未央 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:10

    All my externals were in directories named flow. I fixed the URLs in my externals with this one-liner (bash shell):

    for p in $(find -maxdepth 4 -name flow); do svn ps svn:externals "$(svn pg svn:externals $p/.. | perl -pe 's/^(\w+) svn\+ssh.*thing\.domain\.net(.*)/$2 $1/')" $p/..; done
    

提交回复
热议问题