Configure Mercurial for extdiff Directory Compare with vim on Windows
I'm running Mercurial from the command line on Windows XP. I've obtained the extdiff plugin. I desired
to make use of Vim is DirDiff command. I've attempted placing
cmd.vimdiff = gvim opts.vimdiff = -f '+next' '+execute "DirDiff" argv(0) argv(1)'
In my Mercurial.ini. If I do hg vimdiff after that gvim opens up with a documents name'+next'. I assume the trouble is to do with pricing estimate and also pathnames details to windows. I've attempted a variety of permutations of backslashes and also solitary and also double quotes (not totally arbitrarily) yet without good luck.
I've addressed my trouble in the meantime by making a different script to invoke gvim i.e.
[extdiff] cmd.vimdiff = c:\python25\python.exe opts.vimdiff = c:\test\gvimdiff.py
and also gvimdiff.py being
import sys import os os.system('gvim -c "DirDiff %s %s"' % (sys.argv,sys.argv))
But if any person recognizes the secret necromancy to make it function straight from the command line allow me recognize and also I'll possibly attempt and also get the documents upgraded.
The trouble is brought on by a type of bug of vim when calling a function with f - args and also the args are strings finishing with 'bkslsh'. The remedy is to remove the routing 'bkslsh' for each and every arg.
I have an even more portable remedy below: