[PATCH 0 of 1] bash_completion: complete aliases

Yann E. MORIN yann.morin.1998 at anciens.enib.fr
Wed May 11 22:08:55 UTC 2011


Hello All!

The following patch enables bash_completion to also complete aliases.

Because all calls to 'hg' are done with HGPLAIN=1, the hgrc files are
not used when searching commands with 'debugcomplete'. This means that
aliases are not suggested during auto-completion.

A simple fix would be to call 'hg' without HGPLAIN just in this case,
but I do not know about nasty side effects that could pop-up. So I took
another approach: getting all the aliases from the configuration dump
without HGPLAIN being set.

I'm ready to rework the patch if needed to get a better fix. ;-)

Regards,
Yann E. MORIN.


More information about the Mercurial-devel mailing list