While using Eclipse in coding and SVN for the team repository, I am having trouble in having conflicts in Eclipse.
Supposing I have a conflict and there 3 automatically generated files. Once I have resolved the conflict, I can't find the command how to commit the solution of the conflict and automatically deleting the generated files.
In SVN outside Eclipse, there is a Resolve Conflict function and the codes will be updated. Also, the generated files for the conflict will be deleted. Is there a similar method in Eclipse or I have to manually delete the generated files and commit the solution?
除了相关问题中显示的答案外,还可以解决冲突,删除自动生成的文件并标记为合并 。
I had the same problem and none of the solutions mentioned resolved my issue. When I would right-click on the folder, there was no option to resolve the conflict or mark as resolved or anything.
The way I resolved it in Eclipse (with Subclipse plugin), was right-clicking on the folder and selecting "Show Tree Conflicts". This opened up a view pane in Eclipse called "SVN Tree Conflicts" which showed the folder in question.
I right-clicked that message and selected "Resolve". Then a window popped up, asking what I wanted to do. I basically unchecked all the boxes, that had to do with accepting left file or right file or merging. Because basically, I just wanted to mark the conflict as resolved, and accept the folder as it was, from the repository.
Then I was able to continue updating my project without issues.
In Eclipse on the Team menu you can choose either edit conflicts
or mark resolved
我这样做是将视角更改为“ 团队同步 ”,在同步选项卡中右键单击文件并选择“ 标记为已合并 ”
Another solution (similar to princepieros) is to Right-Click your project -> Execute an entire commit -> It will show "Conflict" items -> Right-Click these items and hit "Mark as Merged" or "Edit Conflict". This did the trick for me. Hope it helps.
I did the following steps:
filename.java <-- Original file
filenam.java.mine <-- My file
filename.java.revisionNumber <-- Their file (incoming file that caused conflict)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.