We are using Mercurial (+Tortoise Hg) as VCS and Kdiff as diff and merge tool.
Some files are merged automatically and sometimes this auto merge result is wierd:
public static Method()
<<<<<<< local
{
DoSmth();
}
=======
{
DoSmth2();
}
>>>>>>> other
Seems like kdiff has done nothing with unresolved conflict in file but marked it as resolved. Maybe kdiff doesn't understand diff file format sometimes? Some bug in hg and kdiff integration?
Also seems that this problem appeared recently, may be the problem with a new version of hg/tortoise hg/kdiff?
We are using:
- Windows 7 x64
- TortoiseHg and Mercurial 3.6.1
- Kdiff 0.9.98
From mercurial.ini:
[ui]
merge = kdiff3
[tortoisehg]
editor=VisualStudio
vdiff=meld
[merge-tools]
meld.executable = C:\Program Files (x86)\Meld\meld.exe
meld.priority = 1
meld.premerge = False
meld.args = $local $base $other
[diff]
git = True
Update:
Problem appears even with manual merge. Steps:
And here it is! Parent 1 (center column) contains 'dest', 'source' as a part of the file. But there were no such lines in this file.
Seems like HG gives to kdiff file with some diff info that Kdiff can't/mustn't understand.
[merge-tools]
is a) bad b) useless. Do you have kdiff in system? Can you run it by hand – Lazy Badgerdest
+source
lines in parent1 file. Check all sources in Working dir for this scrap (and, BTW, remove it) - it isn't merge-tool addition on the fly - now it's part of sources – Lazy Badger