Allow explicit disabling of extensions
authorSteve Borho <steve@borho.org>
Tue, 18 Sep 2007 19:53:01 -0500
changeset 5469 b12432b1c2c7
parent 5468 24eb1bf8dd83
child 5470 8374f3f081f2
Allow explicit disabling of extensions If the first character of an extension path is '!', the extension is silently skipped.
mercurial/extensions.py
--- a/mercurial/extensions.py	Thu Oct 11 06:13:17 2007 +0900
+++ b/mercurial/extensions.py	Tue Sep 18 19:53:01 2007 -0500
@@ -70,6 +70,8 @@
     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)