equal
deleted
inserted
replaced
177 except TypeError: |
177 except TypeError: |
178 if inspect.getargspec(extsetup).args: |
178 if inspect.getargspec(extsetup).args: |
179 raise |
179 raise |
180 extsetup() # old extsetup with no ui argument |
180 extsetup() # old extsetup with no ui argument |
181 |
181 |
182 def loadall(ui): |
182 def loadall(ui, whitelist=None): |
183 result = ui.configitems("extensions") |
183 result = ui.configitems("extensions") |
|
184 if whitelist: |
|
185 result = [(k, v) for (k, v) in result if k in whitelist] |
184 newindex = len(_order) |
186 newindex = len(_order) |
185 for (name, path) in result: |
187 for (name, path) in result: |
186 if path: |
188 if path: |
187 if path[0:1] == '!': |
189 if path[0:1] == '!': |
188 _disabledextensions[name] = path[1:] |
190 _disabledextensions[name] = path[1:] |