[PATCH] Move alias into core

Greg Ward greg-hg at gerg.ca
Mon May 18 22:21:02 CDT 2009


On Mon, May 18, 2009 at 10:49 PM, Brendan Cully <brendan at kublai.com> wrote:
> # HG changeset patch
> # User Brendan Cully <brendan at kublai.com>
> # Date 1242701320 25200
> # Node ID ff2c73f240604842f214e44e595726357c22f2ee
> # Parent  252232621165917755727729c7f0b9a1f1263668
> Move alias into core.
>
> Error reporting for aliases that are ambiguous, recursive or do not
> resolve to a real command is slightly different (and slightly less
> informative). This version doesn't accept abbreviations for aliases
> either. Otherwise, it is equivalent in power to the extension. Calling
> _dispatch recursively would allow for more powerful features, like
> setting --config options in an alias definition.

Seems like a good idea to me.  After all, aliases are basically
low-rent extensions, and having to enable a "real" extension to add my
own low-rent extensions seems weird.

Is it possible/desirable to detect when the old 'alias' extension is
configured and issue a deprecation warning?

Greg



More information about the Mercurial-devel mailing list