TortoiseHg Integration

To use Code Compare with TortoiseHg 2.4.3 and later, just select the following values in the combo-boxes as shown below:

TortoiseHG integration

If you need to use Mercurial in the console mode, you should add the following lines to the mercurial.ini file:

[extensions]
extdiff=
 
[extdiff]
cmd.codecompare=C:\Program Files\Devart\Code Compare\CodeCompare.exe
opts.codecompare=/SC=Hg /title1="$plabel1" /title2="$clabel" $parent $child
 
[merge-patterns]
**.**=codecompare_merge
 
[ui]
merge=codecompare_merge
[tortoisehg]
vdiff=codecompare_diff

Besides, to use versions of TortoiseHg earlier than 2.4.3, you should add the following lines to the mercurial.ini file:

[merge-tools]
codecompare_diff.regkey=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CodeCompare_is1
codecompare_diff.regname=InstallLocation
codecompare_diff.regappend=CodeCompare.exe
codecompare_diff.diffargs=/SC=TortoiseHg /title1="$plabel1" /title2="$clabel" $parent $child
codecompare_diff.diff3args=/SC=TortoiseHg /title1="$plabel1" /title2="$clabel" /title3="$plabel2" $parent1 $child $parent2
codecompare_diff.binary=False
codecompare_diff.gui=True
codecompare_diff.dirdiff=True
codecompare_merge.regkey=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\CodeCompare_is1
codecompare_merge.regname=InstallLocation
codecompare_merge.regappend=CodeMerge.exe
codecompare_merge.args=/SC=TortoiseHg /TF=$other /MF=$local /RF=$output /BF=$base /TT="Other: $other" /MT="Local: $local" /RT="Output: $output" /BT="Base: $base"
codecompare_merge.binary=False
codecompare_merge.gui=True
codecompare_merge.checkconflicts=True
codecompare_merge.premerge=Keep