Merging a part of SVN repository to another repository with history

╄→гoц情女王★ 提交于 2019-12-04 01:28:43

问题


I have to svn repositories , lets say A and B. I want to add some of the directories of the B into A along with history.Is it possible to do that. To make more clear, following is the scenario.

    repo A                                repo B
       \branches                          \branches 
             \sub-branch1                      \sub-branch B1
              \sub-branch2                      \sub-branch B2 
       \trunk                             \trunk 

What i would like to do is, add sub-branch2 in the branches of repo A. How could do it?

thanks in advance


回答1:


Get the dump of sub-branch2 of repoB:

  svnadmin dump /location/of/repoB | svndumpfilter include subbranch2 > my.dump

Merge the dump into branches of repoA:

  svnadmin load /location/of/repoA --parent-dir branches < my.dump



回答2:


Yes, this is possible. You need to use svnadmin dump and svnadmin load.
For more info, look here: http://blogs.nuxeo.com/dev/2006/04/dump-load-svn-repositories-using-svnadmin-svndumpfilter.html



来源:https://stackoverflow.com/questions/5579536/merging-a-part-of-svn-repository-to-another-repository-with-history

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!