dispatch: remember loaded extensions in a real set
authorMartin Geisler <mg@lazybytes.net>
Thu, 07 May 2009 17:56:57 +0200
changeset 8304 991ca609ccd6
parent 8303 db52cc4f2f97
child 8305 7a0fcdd3828f
dispatch: remember loaded extensions in a real set
mercurial/dispatch.py
--- a/mercurial/dispatch.py	Thu May 07 01:33:45 2009 +0200
+++ b/mercurial/dispatch.py	Thu May 07 17:56:57 2009 +0200
@@ -252,7 +252,7 @@
               result = ret)
     return ret
 
-_loaded = {}
+_loaded = set()
 def _dispatch(ui, args):
     # read --config before doing anything else
     # (e.g. to change trust settings for reading .hg/hgrc)
@@ -300,7 +300,7 @@
             ui.warn(_("extension '%s' overrides commands: %s\n")
                     % (name, " ".join(overrides)))
         commands.table.update(cmdtable)
-        _loaded[name] = 1
+        _loaded.add(name)
     # check for fallback encoding
     fallback = lui.config('ui', 'fallbackencoding')
     if fallback: