Show More
@@ -134,6 +134,10 def loadall(ui): | |||||
134 | for fn in _aftercallbacks[shortname]: |
|
134 | for fn in _aftercallbacks[shortname]: | |
135 | fn(loaded=False) |
|
135 | fn(loaded=False) | |
136 |
|
136 | |||
|
137 | # loadall() is called multiple times and lingering _aftercallbacks | |||
|
138 | # entries could result in double execution. See issue4646. | |||
|
139 | _aftercallbacks.clear() | |||
|
140 | ||||
137 | def afterloaded(extension, callback): |
|
141 | def afterloaded(extension, callback): | |
138 | '''Run the specified function after a named extension is loaded. |
|
142 | '''Run the specified function after a named extension is loaded. | |
139 |
|
143 |
General Comments 0
You need to be logged in to leave comments.
Login now