[PATCH] Allow explicit disabling of extensions

Giorgos Keramidas keramida at ceid.upatras.gr
Sun Sep 30 11:36:29 CDT 2007


On 2007-09-28 17:06, Steve Borho <steve at borho.org> wrote:
> On Fri, 2007-09-28 at 16:36 -0500, Matt Mackall wrote:
> > On Tue, Sep 18, 2007 at 07:54:55PM -0500, Steve Borho wrote:
> > > # HG changeset patch
> > > # User Steve Borho <steve at borho.org>
> > > # Date 1190163181 18000
> > > # Node ID 98203cff47ce85df26094d03eda8c79ab858f2e2
> > > # Parent  ba3dc78839686ccb285f4227a80356f7b13e6f8f
> > > Allow explicit disabling of extensions

This sounds like a cool feature.  It would be nice if extentions which
are forced by the local administrator but are temporarily broken can be
avoided :)

> > Does this work for extensions specified in .hg/hgrc? There's some
> > magic there.
>
> % hg showconfig extensions.qct
> /home/steve/tools/qct/plugins/qct.py
> % echo "[extentions]" >> .hg/hgrc
> % echo "qct=!/home/steve/tools/qct/plugins/qct.py" >> .hg/hgrc
> % hg showconfig extensions.qct
> !/home/steve/tools/qct/plugins/qct.py
> % hg qct
> hg: unknown command 'qct'
> <snip>

Watch out for the typo /extentions/extensions/.  It may mess up the
test.



More information about the Mercurial-devel mailing list