Subversion 合并后树冲突 - “本地删除,合并时传入编辑”
我在主干和分支之间进行了合并。
在后备箱上,有一个文件夹,比如说 templates/Toto。
在分支上,除了 Toto 文件夹之外的所有内容都在那里(不是本地删除,Toto 根本不在存储库中)。
在执行合并后(我尝试了几次),我总是会遇到奇怪的树冲突“本地删除,合并时传入编辑”。但是,正如我所说,这不是本地删除。
解决这个问题的正确方法是什么?严格来说,我绝对不是指将 Toto 从主干手动复制到分支。
我读了文档,但我仍然卡住了。
I did a merge between the trunk and a branch.
On the trunk, there is a folder, let's say templates/Toto.
On the branch, everything but the folder Toto is there (not a local delete, Toto is simply not in the repo).
After I performed the merge (I tried several times), I always end up with a freaking tree conflict "local delete, incoming edit upon merge". However, as I stated, this is NOT a local delete.
What is the proper way to solve this? By proper, I definitely don't mean manual copy of Toto from trunk to branch.
I read the doc, but I'm still stuck.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您在客户端和服务器端使用什么版本的 Subversion?服务器上的版本 1.4.x 和客户端上的版本 1.6.x 可能最终会出现“树错误”。
参考 SVN 如何在两个分支上添加文件时解决新的树冲突
可能可以完成这项工作。
What version(s) of subversion are you using on the client and server side? Version 1.4.x on the server and 1.6.x on the client may end up in 'tree errors'.
Referring to SVN how to resolve new tree conflicts when file is added on two branches
might do the job.
如果以下方法不起作用(不适合我),请通过 IDE 尝试。我通过 Netbeans 尝试过,并且成功了。
首先选择目录并解决冲突。它会自动询问您是否要接受您的工作目录结构。
If the following doesn't work (it didn't for me), try it through the IDE. I tried it through Netbeans and it worked.
First select the directory and resolve conflicts. It automatically asks whether you want to accept your working directory structure.
同样的问题 w 1.6.x,这对我有用(与上面的答案略有不同,这对我不起作用):
svn resolve --acceptworking templates/Toto
Same issue w 1.6.x, here's what worked for me (slightly different to above answers, which did not work for me):
svn resolve --accept working templates/Toto
这应该将文件夹从主干中取出,而无需您手动复制它
This should bring it the folder from trunk w/out you having to manually copy it