解决树木冲突

如何解决当前场景中的树木冲突。

C:\DevBranch C:\MyBranch 

我更新了两个分支。 编辑MyBranch,然后再提交。 现在想要将这些更改合并到DevBranch中。 当我在做合并时,我得到了“树冲突”

 The last merge operation tried to add the file 'abc.def', but it was already added locally. How do you want to resolve this conflict? Keep the file from repository Keep the local file 

我该如何解决?

你可以做什么来解决你的冲突

 svn resolve --accept working -R <path> 

其中<path>是你有冲突的地方(可以是你的回购的根)。

说明:

  • resolve要求svn解决冲突
  • accept working指定保留您的工作文件
  • -R代表recursion

希望这可以帮助。

编辑:

总结下面的评论中所说的内容:

  • <path>应该是冲突的目录(在OP的情况下是C:\DevBranch\
  • 这很可能是冲突的起因
    • 要么使用svn switch命令
    • 或者在分支创build时检查了Switch working copy to new branch/tag选项
  • 有关冲突的更多信息可以在Tortoise文档的专用章节中find。
  • 为了能够运行这个命令,你应该使用与Tortoise一起安装的CLI工具:

命令行客户端工具