使用 svnmerge.py 重新集成分支(如 svn merge --reintegrate)
由于我的 SVN 存储库仍然使用 Subversion 1.4,因此我使用 svnmerge。 py 用于合并跟踪。我有一个与主干保持同步的功能分支(分支后svnmerge init
,然后时不时地svnmerge merge
)。
现在我想将分支重新集成到主干中(这与SVN 书籍)。
如何使用 svnmerge.py
执行与 svn merge --reintegrate
等效的操作?
Since my SVN repository still uses Subversion 1.4, I am using svnmerge.py for merge tracking. I have a feature branch kept in sync with trunk (svnmerge init
after branching, then svnmerge merge
every now and then).
Now I want to reintegrate the branch back into the trunk (this is the same situation described in the SVN book).
How can I perform the equivalent of svn merge --reintegrate
using svnmerge.py
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在主干上重新初始化合并跟踪才能发现分支中的更改。
这应该会在分支从主干复制之后自动初始化仅针对提交的合并跟踪。运行 svnmerge Avail 进行确认。如果不是,您需要传递选项
-r1-
,其中 REV 是副本的修订版本。然后从分支合并到主干就像以前一样(运行
svnmerge merge
)。最后,您需要在主干上运行 svnmerge uninit 。否则,如果其他用户正在关注主干,他们最终会合并到您的合并跟踪元数据中,这可能会使
svnmerge
的使用变得更加复杂和不方便。You'll need to reinitialize merge tracking on the trunk to discover changes in the branch.
This should automatically initialize the merge tracking for only the commits after the branch was copied off of trunk. Run
svnmerge avail
to confirm. If not you'll need to pass the option-r1-<REV>
where REV is the revision of the copy.Then merge from the branch to trunk is just like before (running
svnmerge merge
).Finally, you'll want to run
svnmerge uninit
on the trunk. Otherwise, if other users are following trunk, they'll end up merging in your merge-tracking metadata, and this can make usingsvnmerge
more complicated and inconvenient.