[PATCH 1 of 2 RFC] dispatch: add shell aliases

Martin Geisler mg at aragost.com
Fri Jul 9 07:16:35 CDT 2010


timeless <timeless at gmail.com> writes:

> On Fri, Jul 9, 2010 at 5:23 AM, Steve Losh <steve at stevelosh.com> wrote:
>> This patch adds git-style "shell aliases" to Mercurial.
>>
>> Any alias with a definition beginning with a '!' will be treated as a shell
>> alias. For example:
>
> What if I want to *cancel* an alias?
>
> I'm a guest on a number of systems. Systems tend to have incredibly
> stupid system defaults in places I can't change. (See ancient debian
> distributed defaults...)
>
> for hgext, I can use
>
> foo = !
>
> if I want to disable an extension, is there a way I can do the same
> for your aliases?

Nope, the ! cannot be used for that -- neither today nor in the future.
You can use the little-known %unset syntax instead:

  [alias]
  %unset foo

-- 
Martin Geisler

aragost Trifork
Professional Mercurial support
http://aragost.com/mercurial/


More information about the Mercurial-devel mailing list