SVN - 发布分支和错误修复
假设我们有一个名为“v1.0”的发布分支。 trunk 中的工作仍在继续(开发未来版本 - v1.1)。现在我在 v1.0 中检测到一个关键 BUG,必须立即修复。修复了release分支中的bug后,该bug仍然存在于trunk中。如何修复我在发布分支中修复的主干中的相同错误?
Lets say we have release branch called "v1.0". The work in trunk continues (developing future versions - v1.1). Now I detect a critical BUG in the v1.0 which has to be fixed NOW. After fixing the bug in the release branch, it still exists in trunk. How do I fix the same bug in trunk I have fixed in the release branch?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要将分支合并回主干。
http://svnbook.red-bean.com/en/1.0/re16.html
You need to merge the branch back in to the trunk.
http://svnbook.red-bean.com/en/1.0/re16.html
将这些更改拉到主干的最简单方法是为修复错误的修订创建补丁(使用 diff)并将其应用到主干。
我刚刚在这里找到了如何执行上述操作的很好的解释:
http://bro-ids.org/wiki /index.php/Subversion#How_to_merge_features_into_the_trunk_.28Vern-style_:-.29
(今年,我们一直在与 hg 合作,这会更容易。)
The easiest way to pull just those changes to the trunk is to create a patch for the revision that fixed the bug (using diff) and apply that to the trunk.
I just found a great explanation of how to do the above here:
http://bro-ids.org/wiki/index.php/Subversion#How_to_merge_features_into_the_trunk_.28Vern-style_:-.29
(This year, we've been working with hg where it's much easier.)