changeset 5469:b12432b1c2c7

Allow explicit disabling of extensions If the first character of an extension path is '!', the extension is silently skipped.
author Steve Borho <steve@borho.org>
date Tue, 18 Sep 2007 19:53:01 -0500
parents 24eb1bf8dd83
children 8374f3f081f2
files mercurial/extensions.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -70,6 +70,8 @@ def loadall(ui):
     result = ui.configitems("extensions")
     for i, (name, path) in enumerate(result):
         if path:
+            if path[0] == '!':
+                continue
             path = os.path.expanduser(path)
         try:
             load(ui, name, path)