Mercurial > hg
changeset 8304:991ca609ccd6
dispatch: remember loaded extensions in a real set
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 07 May 2009 17:56:57 +0200 |
parents | db52cc4f2f97 |
children | 7a0fcdd3828f |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: