extensions: indicate loaded for an immediately called afterload callback
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 21 Feb 2015 00:40:18 -0500
changeset 24145 28af978c8f13
parent 24144 a35b59d4df33
child 24146 dd8c891dd09a
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.
mercurial/extensions.py
--- 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)