diff mercurial/extensions.py @ 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 042d95beeee8
children fb6cb1b82f4f
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)