# HG changeset patch # User Matt Harbison # Date 1424497218 18000 # Node ID 28af978c8f13a73180eb47c3e55ae92f588579d9 # Parent a35b59d4df332e8e730fa906d5358d57f25f97a1 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 -r a35b59d4df33 -r 28af978c8f13 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)