I'm using mercurial for revision control in Windows, but I'd like to use a nice merge tool like TortoiseGitMerge. How can I tell Mercurial to use TortoiseGitMerge for merge conflicts?
How do I use tortoisegitmerge with mercurial?
249 views Asked by Josh Kodroff At
2
There are 2 answers
2
On
Ensure that you have installed TortoiseGit.
Then, edit or create %userprofile%\.hgrc
(e.g. c:\users\YOUR_USER_NAME\.hgrc
) and add the following:
[extdiff]
cmd.tortoisegitmerge = c:/Program Files/TortoiseGIT/bin/TortoiseGitMerge.exe
[merge-tools]
tortoisegitmerge.args = -base $base -mine $local -theirs $other -merged $output
Good [merge-tools] section for TortoiseGitMerge (extracted from TortoiseHG's
hgrc.d\MergeTools.rc
) for single merge-tool only (Merge Tool Configuration wiki-page used for reference)For more than 1 merge tool
tortoisegitmerge.priority
key with some priority have to added. In order to ignore priority-list and use always preselected from possible choices merge-tool, useIn global or repository-specific ini-file