如果我不从 Subversion 中的主干合并,是否需要重新集成?

发布于 2024-08-28 17:37:16 字数 570 浏览 7 评论 0原文

我读过很多关于在 SVN 中从分支合并回主干时需要重新集成的内容(一篇关于外部存储库合并的文章非常有帮助)。

问题似乎来自这样一个事实:人们定期从主干更新分支,这意味着最终的合并回来是反射性的。

在我的用例中,我们想要创建一个发布分支,只要稳定分支并修复任何错误,该分支就会一直存在。为了保持稳定性,我们不想从主干向上合并,但我们确实希望定期从发布分支向下合并修复,以便主干免费获得所有错误修复。我们也不想等到 QA 结束才合并回主干。因此,我们想要:

  1. 创建分支
  2. 对分支(和主干)进行定期更改
  3. 定期合并回主干(也许每天)

因为我们永远不会从主干合并,所以我认为我们不需要担心以下问题:重新集成旨在修复。这种做法有问题吗?

I have read quite a bit about the need to re-integrate when you merge from a branch back to the trunk in SVN (an article about foreign repository merges was really helpful).

The problem seems to come from the fact that people are regularly updating the branch from the trunk which means that the final merge back is reflective.

In my use-case, we want to create a release branch which will live for as long as it takes to stabilise the branch and fix any bugs. To maintain stability we don't want to merge up from the trunk, but we do want to regularly merge fixes down from the release branch so that the trunk gets all the bug fixes for free. We also don't want to wait until the end of QA to merge back to trunk. We therefore want to:

  1. Create the branch
  2. Make regular changes to the branch (and trunk)
  3. Merge back to trunk regularly (daily perhaps)

Since we will never merge up from trunk, I don't think that we need to worry about the problems that re-intergrating is designed to fix. Is there a problem with this approach?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小…楫夜泊 2024-09-04 17:37:16

您的方法非常适合您的情况。

反射合并的唯一问题是失去冲突解决工作(以及合并期间提交的不相关更改)。
由于您不会有任何冲突的更改,并且分支上的所有更改集都将是合并到主干中的合法候选者,因此您可以开始了。

如果您从主干开始合并,那么您可能会遇到一些麻烦,但即使如此,如果您进行了最少的冲突解决工作并且跟踪它,那么您仍然可以继续。

Your approach will work fine for your case.

The only problem with reflective merges is loosing the conflict resolution work (and unrelated changes committed during a merge).
Since you won't have any conflicting changes, and all changesets on your branch will be legitimate candidates for merging into trunk, you're good to go.

If you start merging from trunk, then you might be in some trouble, but even then, if you've got minimal conflict resolution work and you keep track of it, you're still good to go.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文