简体   繁体   English

无法“使用“他们的”解决冲突”

[英]Can't “Resolve conflict using 'theirs'”

I am using TortoiseSVN and I am working on a branch to patch a project. 我正在使用TortoiseSVN,并且正在为项目打补丁的分支。 The first time I merged the branch into the trunk the project had some problems so I rolled back that merge (which deleted a couple folders in the process). 第一次将分支合并到主干中时,项目遇到了一些问题,因此我回滚了合并(在此过程中删除了几个文件夹)。 I switched my working copy to the branch (which has the folders) and made a bunch of changes to try to fix the problems I had last release. 我将工作副本切换到分支(具有文件夹),并进行了大量更改以尝试解决上次发布的问题。

Now I have switched my local copy to the trunk again (which is missing those folders due to the roll back) to perform the merge but there were tree conflicts because the folders were deleted in the trunk as part of the rollback and I cannot choose to resolve the conflict by accepting the branch's version which has the folders because TortoiseSVN says "Tree conflict can only be resolved to 'working' state;" 现在,我已将本地副本再次切换到主干(由于回滚而缺少了这些文件夹)以执行合并,但是由于在回滚中删除了主干中的文件夹,因此存在树冲突,并且我无法选择通过接受具有文件夹的分支的版本来解决冲突,因为TortoiseSVN表示“树冲突只能解决为'工作'状态;” I have also tried switching back to the branch but I get the same problem: the folders are in conflict and I cannot resolve the conflict by taking the branch, only the working state. 我也尝试过切换回分支,但遇到了同样的问题:文件夹发生冲突,我无法通过选择分支来解决冲突,只能使用工作状态。

As I said in my comment, I think your switching and attempted fixing has put you into an odd state that you're going to have to manually resolve. 正如我在评论中说的那样,我认为您的切换和尝试修复的操作已使您进入一种奇怪的状态,您将必须手动解决该问题。

  1. Pull both your branch and the trunk to separate directories. 拉你的分支和主干,以单独的目录。 You are not restricted (by SVN) to having only one locally. (不受SVN限制)本地只有一个。
  2. Once you have both, pull the missing files/directories from your branch into the trunk. 两者兼有之后,将分支中丢失的文件/目录拉入主干。
  3. Verify your build! 验证您的构建!
  4. Then add the new files to the trunk and commit. 然后将新文件添加到中继并提交。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM