[PATCH 0 of 1] bash_completion: complete aliases

Martin Geisler mg at lazybytes.net
Sat May 14 11:36:53 CDT 2011


"Yann E. MORIN" <yann.morin.1998 at anciens.enib.fr> writes:

> 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. ;-)

In addition to the comments by Matt, let me just add that you should
include the above explanation in the *commit message* instead of making
it a separate email here.

I know Mercurial has tons of changesets with a single-line commit
message -- and I often regret that when a 'hg bisect' points me to one
of those changesets. Since the commit message cannot be changed after
the fact, I think it is better to err on the side of including too much
information in it.

-- 
Martin Geisler

Mercurial links: http://mercurial.ch/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110514/49f60bd6/attachment.pgp>


More information about the Mercurial-devel mailing list