Tortoise SVN 合并 - 新主干到分支
假设我有一个主干,我在周日创建了它的一个分支(分支 A),进行修订 10。
周一,我在分支 A 和主干上工作(分支 A 负责修订 11,12 和 15,而中继线负责 13、14 和 16)。
星期二,我从主干(修订版 17)创建了一个新分支(分支 B)。
星期三,我在分支 A 和分支 B 上工作(分支 A 负责修订版 18-24 和 26,而分支 B 负责修订版 25 和 27)。
周四我删除了旧的主干,并用分支 B 替换它(不合并,只是删除主干,并将分支 B 复制到主干)(修订版 28)。
如果周五我想将新的主干合并到分支 A,我该怎么做?我希望将对各个主干和分支 B 所做的所有更改都转移到分支 A 中。我将使用什么修订号?
任何帮助将不胜感激!
Let us say I have a trunk and I create a branch (branch A) of it on Sunday making Revision 10.
On Monday I work on both branch A and the trunk (branch A is responsible for Revision 11,12,& 15 while trunk is responsible from 13, 14, & 16).
Tuesday I created a new branch (branch B) from the trunk (Revision 17).
Wednesday I work on both branch A and branch B (branch A is responsible for Revision 18-24, & 26 while branch B is responsible for Revisions 25 & 27).
On Thursday I delete the old trunk and replace it with branch B (not merge, just delete trunk, and copy branch B to trunk)(Revision 28).
If on Friday I want to merge the new trunk into branch A, how would I do that? I would want all changes that were made to the various trunks and branch B into branch A. What revision numbers would I use?
Any help would be greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
分支 A,即您的合并目标
工作副本,单击 TortoiseSVN
合并菜单项,选择“合并一个
range of revisions”
合并自; 离开“列表
revisions”文本框为空
将自动确定哪些修订符合合并条件。
检查对您所做的修改
通过合并工作副本。测试!
请注意,合理的工作流程不应涉及删除和重新创建主干。我从来没有这样做过。
branch A, i.e. your merge target
working copy, click the TortoiseSVN
merge menu item, select "merge a
range of revisions"
merge from; leave the "list of
revisions" text box empty
will automatically determine which revisions are eligible for merging.
Review the modifications made to your
working copy by the merge. Test!
Please note that a sane work-flow shouldn't involve deleting and recreating the trunk. I've never done that.
如果您使用的是新版本的 Subversion(1.5 或更高版本),您不需要担心修订号...它应该为您处理合并。
If you are using a new version of Subversion (1.5 or newer), you shouldn't need to worry about revision #s ... it should handle the merge for you.