SVN:将存储库主干移动到另一个分支(带有历史记录)
我正在使用带有大量存储库的 SVN 设置。我试图通过将一个的主干移动到另一个的分支来合并一些(旧的是新的主题版本,减去我稍后将应用的一些代码修复,所以这对我来说很有意义)。简短版本,我想从 RepositoryA/trunk 转到 RepositoryB/branches/RepAName。
理想情况下,我想保留历史。我可以导出 ->导入,但这会丢失历史记录,因此并不理想。我无法通过 svnadmin 进行转储,因为这似乎会覆盖 RepositoryB (或失败,但我不想冒失去 RepositoryB 的风险来找出答案)。那么我怎样才能移动并保留历史记录,或者说 SVN 不可能做到这一点?
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.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在
svnadmin dump
之后,您可以使用svnadmin load --parent-dir
指定导入的父目录,请参阅 svn 手册。
After
svnadmin dump
you can specify the parent directory of your import withsvnadmin load --parent-dir <dir>
, see the svn manual.