SVN合并分支,从主干合并到分支

有两个分支需要合并

Profile2011_ClientProfile2011

其中Profile2011_ClientProfile2011在1790的分支

现在Profile2011走到了2177

所谓合并分支,就是要将Profile2011在1790-2177的改动影响到Profile2011_Client

于是就认为是==>

①from:

Profile2011 的 1805(1790后的第一次改动)

to:

Profile2011_Client 的 HEAD

test merge,结果,上面是错误的,发现貌似方向刚好反的。记得某个高人的博客里说过from和to的意思和在中文里相反

于是改成==>

②from:

Profile2011_Client 的 HEAD (是1844)

to:

Profile2011 的 HEAD (是2177)

感觉应该是把Profile2011_Client的最高版本和Profile2011的最高版本之间的Profile2011的所有改动应用到working copy上

或者是Profile2011_Client的初始版本和Profile2011的最高版本之间的Profile2011的所有改动应用到working copy上

③from:

Profile2011_Client 的 1790 (创建分支的版本)

to:

Profile2011 的 HEAD (是2177)

过断直接执行②,期待结果中...

------------------------------------------------

结果失败:Profile2011_Client的1790-1844的改动全部丢失

①、②都失败了,那就是③了

提交合并失败的版本(备份用),现在最高是2182

然后Profile2011_Client "up to version" 1844 "show logs" "Revert this version"

(要先update到最高版本才可以使用回滚功能)

现在Profile2011_Client 2183=1844

再次开始合并分支==>

得到 2186 貌似,貌似,这个是正确的...

原文地址:https://www.cnblogs.com/ShepherdIsland/p/svn_merge_apply.html