extensions: indicate loaded for an immediately called afterload callback
Otherwise, there's no way to tell between the immediate callback when it is
already loaded, and when the extension is not loaded at all.
--- a/mercurial/extensions.py Tue Feb 24 00:08:04 2015 -0800
+++ b/mercurial/extensions.py Sat Feb 21 00:40:18 2015 -0500
@@ -148,7 +148,7 @@
'''
if extension in _extensions:
- callback(loaded=False)
+ callback(loaded=True)
else:
_aftercallbacks.setdefault(extension, []).append(callback)