在 SVN 1.5 之前使用 TortoiseSVN 合并功能分支
我正在使用 Subversion 1.3 或 1.4。我还无法将我的服务器升级到 1.5。我已经创建了一个分支,进行了更改,现在需要将其合并回主干,因为我已经完成了分支上的工作。
自从我分支以来(大约一个月),许多变化发生在主干上。我已经使用 SVN 的“合并修订”功能将它们合并到我的分支中。这意味着该分支包含最新的主干代码以及我的更改。
我无法使用 Tortoise SVN“重新集成分支”功能,因为我没有 1.5。我尝试将分支的修订范围合并到主干中,但是我遇到了大量冲突(以及树冲突)。我不知道为什么,因为我的分支已经合并了主干中的所有更改(重新建立基础)。
我做了一些重组(移动文件、创建/删除目录)。我觉得我失去了一些东西;如果我的分支有最新的主干代码加上分支更改,为什么合并回主干充满冲突?
如何快速/轻松地将更新的分支合并回主干?
I'm using Subversion 1.3 or 1.4. I can't upgrade my server to 1.5 yet. I've created a branch, made changes, and now need to merge it back into the trunk since I've finished working on my branch.
In the time since I branched (~one month), many changes hit the trunk. I have merged those into my branch using SVN's "merge revisions" feature. This means that the branch contains the latest trunk code, along with my changes.
I can't use the Tortoise SVN "reintegrate branch" feature, since I don't have 1.5. I tried merging the revision range of the branch into the trunk, but I get tons of conflicts (and tree conflicts). I'm not sure why, since my branch has merged all the changes from the trunk (rebased).
I did some restructuring (moving files around, creating/deleting directories). I feel like I'm missing something; if my branch has the latest trunk code plus the branch changes, why is the merge back to trunk full of conflicts?
How can I quickly/easily merge my updated branch back to the trunk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不确定为什么 Raghuram 的答案被接受。
这描述了如何将功能分支合并回主干并在版本1.4中停用它们
http://svnbook.red-bean.com/en/1.4/svn-book.html#svn.branchmerge.commonuses.patterns.feature
I'm not sure why Raghuram's answer is accepted.
This describes how to merge feature branches back into trunk and retire them in version 1.4
http://svnbook.red-bean.com/en/1.4/svn-book.html#svn.branchmerge.commonuses.patterns.feature
参考SVN红皮书,1.5之前,合并变更的方式back to trunk 是明确指定分支之前的修订号。引用相关部分...
此外,这需要从主干的工作副本而不是分支来完成。也许这就是造成你提到的冲突的原因。
Referring to the SVN Redbook, prior to 1.5, the way to merge changes back to trunk is to specify the revision number prior to the branch explicitly. Quoting the relevant section...
Also, this needs to be done from the working copy of the trunk and not the branch. Perhaps this is what is causing the conflicts you have mentioned.