My mercurial tab completion is also messed up, but not in quite the same
way.  Some commands, like 'hg log ...' are fine.  'hg add ...' has
problems: if I have one possibility, I get the filename with unescaped
spaces.  If I have multiple possibilities, it *doesn't* work correctly
for me. The first time I press tab I get the common prefix, and what
happens next depends on whether the common prefix contains a space.  If
it contains a space, weird things happen when I press tab more times
because once the prefix has been echoed everything after the space is
considered to be a new filename.

I'm pretty sure this is a problem in Natty's bash completion rather than
Mercurial's bash completion file -- I have tried two new versions (1.9.0
and 1.9.1) from PPAs, and the 1.9.0 PPA version was working correctly in
Lucid and in Maverick.

If I don't source /etc/bash_completion in .bashrc, I get saner behaviour
with mercurial, but as far as I understand that's turning off all the
custom bash completion entirely, and I no longer have useful
functionality like 'hg add ...' only completing files not already under
version control, and so on.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/460239

Title:
  bash-completition wrong escapes special characters for mercurial

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/460239/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to