Using Subversion on the command-line, it intelligently tab-completes available subcommands, etc:
$ svn c<tab>
cat checkout cl co copy
changelist ci cleanup commit cp
Mercurial, on the other hand, doesn't seem to have tab-completion, at least out of the box:
$ hg c<tab>
[nothing happens]
Is Bash completion for Mercurial available at all? What's the simplest way to get it working? I'm on Ubuntu 11.04.
Best Answer
In Ubuntu 10.04 it works out of the box for me. In bash:
Or in zsh:
Perhaps you have a package missing (or you hit a bug).
On my system the completion file is provided by the mercurial package: