# HG changeset patch # User Brendan Cully # Date 1186621446 25200 # Node ID b3cc62268a91936e577bcafbbc5d423a2892eb27 # Parent 86cd6fd610428f5b68976acf2afcb3e0fa84e79a Cache extension load failures. hg commands call extensions.loadall twice, once during dispatch and once when the repository is instantiated. Without this change, load caches successful loads, but not unsuccessful, causing errors to be displayed twice. diff --git a/mercurial/extensions.py b/mercurial/extensions.py --- a/mercurial/extensions.py +++ b/mercurial/extensions.py @@ -24,6 +24,7 @@ def find(name): def load(ui, name, path): if name in _extensions: return + _extensions[shortname] = None if path: # the module will be loaded in sys.modules # choose an unique name so that it doesn't