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:
Help section says it's vim, how do I go about merging my application.
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).
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.
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.
DiffMerge is an free 3-way merge tool by SourceGear that runs on Windows, Mac, and Linux.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With