changeset 5130:b3cc62268a91

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.
author Brendan Cully <brendan@kublai.com>
date Wed, 08 Aug 2007 18:04:06 -0700
parents 86cd6fd61042
children 3edd6fedc33a 1fd3248b8aa4
files mercurial/extensions.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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