将SVN储存库的一部分合并到具有历史记录的另一个储存库 [英] Merging a part of SVN repository to another repository with history

查看:117
本文介绍了将SVN储存库的一部分合并到具有历史记录的另一个储存库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须svn存储库,比如说AB.我想将B的一些目录和历史记录一起添加到A中,是否有可能做到这一点.为了更加清楚,下面是场景.

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 

我想做的是,在仓库A的分支中添加sub-branch2.怎么办?

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

预先感谢

推荐答案

获取repoB的sub-branch2的转储:

Get the dump of sub-branch2 of repoB:

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

将转储合并到repoA的分支中

Merge the dump into branches of repoA:

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

这篇关于将SVN储存库的一部分合并到具有历史记录的另一个储存库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆