Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial Diff Merge: What tool is this and how do I use it?

I am new to mercurial, I am quite familiar with TortoiseHG, but this is the first time I am managing a project in a headless linux environment. I do an hg update after a push, and I get this screen:

enter image description here

Help section says it's vim, how do I go about merging my application.

like image 536
HyderA Avatar asked May 23 '11 13:05

HyderA


People also ask

What are merge tools?

What Is the Merge Tool? The Merge Tool combines data from multiple sources, then adds them into a new data set. It's not only geometry, but it also merges attributes with the option to match fields from input datasets. When you use the Merge Tool, features have to be the same geometry type (points, lines, or polygons).

How does DiffMerge work?

DiffMerge uses the suffixes of the files and searches the list of configured External Tools for a match. The tools are searched in the order listed in the Options Dialog. DiffMerge then tries to use the first matches. If no tool matches, DiffMerge creates a normal File Diff or Merge Window.

Is diff merge free?

SourceGear DiffMerge is licensed for use free of charge. However, to help fund new feature development and ongoing product maintenance, SourceGear asks DiffMerge users to register the product for a small fee and receive a registration key.

Does DiffMerge work for mac?

DiffMerge is an free 3-way merge tool by SourceGear that runs on Windows, Mac, and Linux.


1 Answers

This is vimdiff. You can learn more about it by running man vimdiff.

However, I would recommend using mercurial's internal:merge tool. It will perform the merge and, if a conflict occurs, insert conflict markers in the file and notify you that there was a conflict. You then open up the file, resolve the conflict, remove the conflict markers, mark the file as resolved, and when all files are cleaned up you can commit the result of the merge. This is very similar to how subversion handles conflicts. You can configure mercurial to use internal:merge by adding the following to your ~/.hgrc file:

[ui] merge=internal:merge 

The tool you'll use to get the list of conflicted files and mark them resolved is called hg resolve, so I would recommend running hg help resolve to learn more about that tool. You can learn more about mercurial's support for merge tools by running: hg help merge-tools.

like image 125
Mark Drago Avatar answered Oct 11 '22 09:10

Mark Drago