SVN Merge - Completely “theirs full” - Branch to trunk

无人久伴 提交于 2019-12-06 09:03:40

问题


I want to merge my branch to trunk and basically want to over-write all the code in branch to the trunk..While receiving conflicts I kept doing "theirs full" for all the conflict; but still at the end it shows so many conflicts.

All I want is over-write complete branch on my trunk. Surely a possible way is to branch out from my branch but then my trunk becomes useless !

Also, while doing svn merge can I give an option so that for all conflicts it takes a particular value ( in this case Full-theirs ) and I dont have to type it always for all the conflicts.


回答1:


Pass --accept=theirs-full to the svn merge command.




回答2:


If you want:

  • Merge branch to trunk
  • For any conflicts use full file from branch
  • Do it automatically

you have to

  • Have clean Working Copy of /trunk
  • Merge in the root of WC your branch to it: svn merge ^/branches/BRANCH
  • Use accept option in order to always prefer branch's file: add --accept 'tf' to merge and get final form svn merge ^/branches/BRANCH --accept 'tf'


来源:https://stackoverflow.com/questions/21274852/svn-merge-completely-theirs-full-branch-to-trunk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!