How do I export a part of an SVN repository with dependencies?

前端 未结 3 1849
情书的邮戳
情书的邮戳 2021-01-07 02:14

I am trying to migrate a part of an SVN repository using svnadmin dump.

The provided svndumpfilter tool doesn\'t manage copy/move/rename dependencies fr

3条回答
  •  萌比男神i
    2021-01-07 02:53

    You cannot get rid of this problem. If you copied a directory/file, you have to include both (source and destination) into svndumpfilter.

    However, you can do some tricks:

    If you dump a repository not from revision 0, but say e.g. from revision 100, you will get a new repository with revision 1-100 vanished. However, your destination repository has all files/folders in revision 1 as your source repository in revision 100. In this way you can get rid of versioned data without losing the HEAD-Revision.

    You can try to dump/load your source repository until your first copy into a "flat" repository, then add the remaining dumps onto it. In this way you can skip the troublesome copy-from revision, as your files are already in the fitting (destination) directory.

提交回复
热议问题