[PATCH] Move alias into core
Mathieu Clabaut
mathieu.clabaut at gmail.com
Fri May 22 05:17:12 CDT 2009
On Thu, May 21, 2009 at 16:56, Matt Mackall <mpm at selenic.com> wrote:
> 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.
There was once some discussion (even a ticket I think, but can't find it at
the time of writing) about what sort of mechanism would allow hg to be
called from other tools and disregard the [default] section (something like
cvs -f), in order to provide reproducible results whatever the [default]
section contains.
-Mathieu
(sorry for my, I guess, bad wording...)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial-devel/attachments/20090522/025911e1/attachment.htm
More information about the Mercurial-devel
mailing list