[PATCH] Move alias into core

Matt Mackall mpm at selenic.com
Thu May 21 09:56:43 CDT 2009


On Thu, May 21, 2009 at 10:42:32AM +0200, Cedric Duval wrote:
> Hi Brendan,
> 
> Brendan Cully wrote:
> > ++
> > +*Note*: It is possible to create aliases with the same names as
> > +existing commands, which will then override the original
> > +definitions. This is almost always a bad idea!
> 
> Perhaps "To alter an existing command's behavior, the [default] section
> should be used." or something along those lines could be added?

And it's still a bad idea in the [defaults] section, so we're going to
deprecate that functionality. It's a bad idea because tools (and
users) expecting one standard behavior get another with no obvious
indication of why and no easy way to disable it. We should probably be
more explicit about that.

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial-devel mailing list