changeset 24145:28af978c8f13

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.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 21 Feb 2015 00:40:18 -0500
parents a35b59d4df33
children dd8c891dd09a
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)