Stephen Rasku wrote:
> Bingo! Changing vimdiff configuration in .hgrc from:
> ...

There appears to be a bug with the way that Windows XP cmd.exe
handles the quoting, and the documented procedure fails for me.

Stephen has updated the docs:
http://mercurial.selenic.com/wiki/ExtdiffExtension#Create_Custom_extdiff_Commands

to say that ~/.hgrc should contain (two lines):

 cmd.vimdiff = gvim
 opts.vimdiff = -f '+next' '+execute "DirDiff"
    fnameescape(argv(0)) fnameescape(argv(1))'

The last line (shown wrapped to two lines here) fails to work on
Windows XP with cmd.exe shell.

The following works on Windows XP and Linux:

 opts.vimdiff = -f "+next" "+execute 'DirDiff'
    fnameescape(argv(0)) fnameescape(argv(1))"

Testing with the documented procedure worked on Linux, but
on Windows XP, the command line arguments are
(each line is one argument, as passed to the program):

 gvim
 -f
 '+next'
 '+execute
 DirDiff
 fnameescape(argv(0))
 fnameescape(argv(1))'
 c:\temp\extdiff.4myj1z\DD.7184f5543c34\a b
 C:\try\DD\a b

John

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to