On Friday, March 9, 2012 11:52:17 AM UTC-6, Stephen Rasku wrote: > I am using the DirDiff plugin with Mercurial as documented here: > > > <a > href="http://mercurial.selenic.com/wiki/ExtdiffExtension#Create_Custom_extdiff_Commands" > > target="_blank">http://mercurial.selenic.com/<WBR>wiki/ExtdiffExtension#Create_<WBR>Custom_extdiff_Commands</a> > > > > > </div>It seems to fail if there are spaces in the filename that has > differences. I get the error: > > > Error detected while processing command line: > E118: Too many arguments for function: <SNR>12_DirDiff > > > > </div> > Here's a test case: > > > $ hg init DD > $ cd DD > $ echo a > "a b" > $ hg add "a b" > $ hg ci -m "added 'a b'" > > > $ echo b >> "a b" > > $ hg vimdiff > </div> > Is there something I can do to get this to work? I am using Vim 7.x and the > latest version of DirDiff.vim (1.1.4). I tried on OS X Lion and Linux and > the problem is the same. > > ...Stephen
On Friday, March 9, 2012 11:52:17 AM UTC-6, Stephen Rasku wrote: > I am using the DirDiff plugin with Mercurial as documented here: > > > <a > href="http://mercurial.selenic.com/wiki/ExtdiffExtension#Create_Custom_extdiff_Commands" > > target="_blank">http://mercurial.selenic.com/<WBR>wiki/ExtdiffExtension#Create_<WBR>Custom_extdiff_Commands</a> > > > > > </div>It seems to fail if there are spaces in the filename that has > differences. I get the error: > > > Error detected while processing command line: > E118: Too many arguments for function: <SNR>12_DirDiff > > > > </div> > Here's a test case: > > > $ hg init DD > $ cd DD > $ echo a > "a b" > $ hg add "a b" > $ hg ci -m "added 'a b'" > > > $ echo b >> "a b" > > $ hg vimdiff > </div> > Is there something I can do to get this to work? I am using Vim 7.x and the > latest version of DirDiff.vim (1.1.4). I tried on OS X Lion and Linux and > the problem is the same. > > ...Stephen Probably you need escape spaces with a backslash (as well as some other characters like % and #). What is the exact command you used which gave you this error? Also possibly you could use fnameescape() depending on how you invoke the command. -- 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
