[PATCH] extensions: indicate loaded for an immediately called afterload callback
Matt Harbison
mharbison72 at gmail.com
Sun Feb 22 17:34:44 UTC 2015
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1424497218 18000
# Sat Feb 21 00:40:18 2015 -0500
# Node ID 6e555df5c9f23a601df8f511ba29efb17b9bdce3
# Parent ff5caa8dfd993680d9602ca6ebb14da9de10d5f4
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.
diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -148,7 +148,7 @@
'''
if extension in _extensions:
- callback(loaded=False)
+ callback(loaded=True)
else:
_aftercallbacks.setdefault(extension, []).append(callback)
More information about the Mercurial-devel
mailing list