views:

968

answers:

1

Hi, i am trying to set up WinMerge as the Merge tool into TortoiseHG; Here is my Mercurial.ini:

; User specific Mercurial config file.
; See the hgrc man page for details.

[ui]
username = Bargio <>
merge = winmergeu


[extdiff]
cmd.winmerge = C:\Program Files (x86)\WinMerge\WinMergeU.exe
opts.winmerge = /e /x /ub /wl

[merge-tools]
winmergeu.executable = C:\Program Files (x86)\WinMerge\WinMergeU.exe
winmergeu.priority= 1
winmergeu.fixeol=True
winmergeu.checkchanged=True
winmergeu.args= /e /ub /dl other /dr local $other $local $output
winmergeu.gui=False

[tortoisehg]
vdiff = winmerge

Visual diff works perfectly but when i try to merge two files i get the following error:

tool winmergeu can't handle binary

How can i fix it?

+3  A: 

You can add

winmergeu.binary=True

as found here http://mercurial.selenic.com/wiki/MergeToolConfiguration if winmerge can merge binary files. If it can't you'll want to configure another merge tool that can and use matters to send the binary files to that tool.

Ry4an
Thank you, pity that WinMerge cannot merge binary files (Actually can only visual diff various binary files with xdocdiff plugin).
Gianluca Bargelli
If you find yourself using WinMerge for a few select extensions you can register it for just those extension using the [merge-patterns] section. Alternately you can map unmergeable binary extensions to "internal:fail" to be forced to pick one or the other.
Ry4an