Cache extension load failures.
authorBrendan Cully <brendan@kublai.com>
Wed, 08 Aug 2007 18:04:06 -0700
changeset 5087 b3cc62268a91
parent 5086 86cd6fd61042
child 5088 1fd3248b8aa4
child 5151 3edd6fedc33a
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.
mercurial/extensions.py
--- a/mercurial/extensions.py	Thu Aug 09 01:04:27 2007 +0200
+++ b/mercurial/extensions.py	Wed Aug 08 18:04:06 2007 -0700
@@ -24,6 +24,7 @@
 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