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

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

    You could:

    a) check out the old revision, and change your hosts-file to point the old name to the new address, then svn update. In case the URL-path also changed... well then you might as well:

    b) take the time to write a script that find the properties in the current (old revision-) working copy and changes the URLs there, without committing them. OR:

    c) make a note of the revision(-s) where you checked in the new property values, check out the old version, and simply do a merge those revisions (-that only affect the properties) into your working copy.

    d) or, possibly, use svndump to dump the repository data, string-replace the URL in the dump, then restore it.. I would not give you any guarantee that that even works ;-)

提交回复
热议问题