Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Resolve Conflict in Eclipse SVN

Tags:

eclipse

svn

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?

like image 604
princepiero Avatar asked Sep 10 '13 07:09

princepiero


4 Answers

The way I do it is change perspective to 'Team Synchronising' and in the synchronise tab you right click the file and select 'Mark as merged'

like image 101
Ben Taliadoros Avatar answered Sep 27 '22 14:09

Ben Taliadoros


Aside from the answers shown in the related question, it is also possible to solve the conflict, delete the automatically generated files and Mark as Merged.

like image 20
princepiero Avatar answered Sep 26 '22 14:09

princepiero


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.

like image 39
user3782832 Avatar answered Sep 27 '22 14:09

user3782832


In Eclipse on the Team menu you can choose either edit conflicts or mark resolved

see Subclipse conflict resolution

like image 23
Scary Wombat Avatar answered Sep 25 '22 14:09

Scary Wombat