Show More
@@ -46,7 +46,7 b' def load(ui, name, path):' | |||||
46 | else: |
|
46 | else: | |
47 | shortname = name |
|
47 | shortname = name | |
48 | if shortname in _extensions: |
|
48 | if shortname in _extensions: | |
49 | return |
|
49 | return _extensions[shortname] | |
50 | _extensions[shortname] = None |
|
50 | _extensions[shortname] = None | |
51 | if path: |
|
51 | if path: | |
52 | # the module will be loaded in sys.modules |
|
52 | # the module will be loaded in sys.modules | |
@@ -66,6 +66,7 b' def load(ui, name, path):' | |||||
66 | mod = importh(name) |
|
66 | mod = importh(name) | |
67 | _extensions[shortname] = mod |
|
67 | _extensions[shortname] = mod | |
68 | _order.append(shortname) |
|
68 | _order.append(shortname) | |
|
69 | return mod | |||
69 |
|
70 | |||
70 | def loadall(ui): |
|
71 | def loadall(ui): | |
71 | result = ui.configitems("extensions") |
|
72 | result = ui.configitems("extensions") |
General Comments 0
You need to be logged in to leave comments.
Login now