comparison mercurial/extensions.py @ 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 60acf1432ee0
children
comparison
equal deleted inserted replaced
5468:24eb1bf8dd83 5469:b12432b1c2c7
68 68
69 def loadall(ui): 69 def loadall(ui):
70 result = ui.configitems("extensions") 70 result = ui.configitems("extensions")
71 for i, (name, path) in enumerate(result): 71 for i, (name, path) in enumerate(result):
72 if path: 72 if path:
73 if path[0] == '!':
74 continue
73 path = os.path.expanduser(path) 75 path = os.path.expanduser(path)
74 try: 76 try:
75 load(ui, name, path) 77 load(ui, name, path)
76 except (util.SignalInterrupt, KeyboardInterrupt): 78 except (util.SignalInterrupt, KeyboardInterrupt):
77 raise 79 raise