hgcommand.vim and a directory with '#' character
Christian Ebert
blacktrash at gmx.net
Wed May 7 19:17:57 UTC 2008
* Aleksey V. Kunitskiy on Monday, May 05, 2008 at 16:48:06 +0300
> I've found that hgcommand.vim does not handle properly directories with '#'
> character. For example:
>
> %>mkdir \#testdir
> %>cd \#testdir
> %>touch testfile
> %>vim testfile
>
> and I got the error:
> "testfile" 0L, 0C
> Error detected while processing function
> <SNR>14_HGSetupBuffer..<SNR>14_HGGetStatusVars:
> line 55:
> E194: No alternate file name to substitute for '#': cd /home/marten/#test
>
> I think that problem is in escape function usage in hgcommand.vim.
> Can someone confirm this?
I can.
While this doesn't help with the issue directly, in case you're
using Vim7, I'd recommend using
vcscommand <http://www.vim.org/scripts/script.php?script_id=90>
in connection with
vcsnursery <http://www.vim.org/scripts/script.php?script_id=1898>
vcscommand also doesn't break with your example. From a hurried
test it seemed to me that it still might have probs with # in
filenames.
atm I have no time to look into this, but I believe it's not
enough to add # to each escape string.
When I find time I'll revert to hgcommand and see what I can do,
unless someone else comes up with a fix.
c
--
Patch queue to improve Mercurial's handling of non-ascii chars in mails:
<http://www.blacktrash.org/hg/hg-mail-mq/>
Mercurial crew repo, with mail improvement patch queue applied:
<http://www.blacktrash.org/hg/hg-crew-mq/>
More information about the Mercurial
mailing list