SVN:将存储库主干移动到另一个分支(带有历史记录) [英] SVN: Moving repository trunk to another's branch (with history)

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

问题描述

我正在使用带有大量存储库的SVN设置。我正在尝试通过将其中一个的主干移到另一个的分支中来合并一些(旧的是新版本的主题版本,减去一些我稍后将应用的代码修复,所以这对我来说很有意义)。简短版,我想从RepositoryA / trunk转到RepositoryB / branches / RepAName。

I'm working with an SVN setup with a lot of repositories. I'm trying to consolidate some by moving the trunk of one into the branch of another (the old ones are themed versions of the new one, minus some code fixes I'll be applying later, so it makes sense to me). Short version, I want to go from RepositoryA/trunk to RepositoryB/branches/RepAName.

理想情况下,我想保留历史记录。我可以执行导出->导入操作,但这会丢失历史记录,因此并不理想。我无法通过svnadmin进行转储,因为这似乎会覆盖RepositoryB(或者失败,但是我不会冒失去RepositoryB的风险)。那么我该如何移动和维护历史记录,还是使用SVN无法实现?

Ideally, I'd like to maintain the history. I could do an export -> import, but that loses the history and so it isn't ideal. I can't do a dump via svnadmin, since that seems it would overwrite RepositoryB (or fail, but I'm not about to risk losing RepositoryB to find out). So how could I make the move and maintain history, or is it not possible with SVN?

推荐答案

svnadmin dump ,您可以使用 svnadmin load --parent-dir< dir> 指定导入的父目录,请参见 svn手册

After svnadmin dump you can specify the parent directory of your import with svnadmin load --parent-dir <dir>, see the svn manual.

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

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