
- Diffmerge resolve all conflicts with right how to#
- Diffmerge resolve all conflicts with right manual#
How did you start the conflict resolution? To me it sounds like you are not using the intended workflow of resolving conflicts, since what you describe more sounds like a comparison and not like the Model Merge tool. The problem seems to be complicated though, beacause models can span multiple files. It should know that the left representation of the model actually corresponds to the file in the workspace and should be saved there. As far as I understand what can be found on this forum and on the wiki, this might have something to do with EGit not handling that action correctly. Quote: First, there is the problem that the save button does not work. Thanks for providing feedback! It is great that you are taking the time to help improving EMF Compare. If there is a way of easily fixing some of the issues, I would gladly do so. I'm guessing it is actually the same action, but I'm not sure.


Third, I find it quite confusing that the tooltip on the 'Apply all from Right to Left' Icon mentions that it will apply all changes, whereas the Action in the contextmenu mentions that it will only apply Non-conflicting Changes, but uses the same Icon. I guess it's a bug, since the problem does not occur when I pick the changes one-by-one (which is our current workaround). Second, when applying all remaining non-conflicting changes from right to left, these changes do show up as merged in the Compare View, but don't show up in the beforementioned XML representation. On a related note: sometimes the save button is greyed out alltogether, even though changes have been made to the model.
Diffmerge resolve all conflicts with right manual#
A working save button would make the manual merge process a lot smoother, though. That XML can then manually be saved in the file on disk.

I needed to resort to copying the XML from the 'By Resource' selection, when selecting the file resource itself. I've been using Eclipse Neon 3 and the latest stable EMF Compare release (.ide.ui_4.11041634, .ide_3.11041634 and .egit_1.11041634).įirst, there is the problem that the save button does not work. I wanted to share these workarounds with you in order to provide some feedback an maybe find a mistake on my part.
Diffmerge resolve all conflicts with right how to#
Even though the usecase sounds as one of the basic ones supported by EMF Compare, I found that a lot of things just don't work and I needed to create a manual for the development team on how to work around these limitations. A lot of programmers will appreciate its arrival in NetBeans.I've recently been investigating the use of EMF Compare for resolving EGit Merge Conflicts in EMF Models. I think 3-way diff is quite useful and especially with distributed version control systems like git or mercurial it's needed more and more. Imagine using it to compare visually the same file across multiple repositories that might have diverged. Then, using those little arrows in the graphical diff I could click to "Insert from left", "Insert from right" or just "Delete" and reach the final text file I want.īesides merge, a 3-way Tools->Diff would also be handy. The tool should help me see conflicts in the same way 2-way diff helps me see changes. What I *should* see instead of a 2-way diff is a 3-way diff showing me the base file too and allowing me to keep changes from my side or from the other side. (Separate note: that window should be a graphical diff window. If I right-click then Mercurial->Resolve conflicts I'm presented with an ugly 2 way diff and a output window. This is a really bad way to visualize what changed. Locally I get a red conflict file which has some ">". >There are conflict/locally modified/new file(s) that will be overridden by Pull.\nDo you still want to perform the Pull? Right now, if I have modified a file locally and it's also been modified in the meantime in the mercurial repository and I do a pull the IDE presents me with: Well, first off, 3-way diff is nice when merging with a VCS.
