Mercurial > hg-stable
changeset 8878:231f9d92fd7a
extensions: use _order to determine if an extension is enabled
author | Cédric Duval <cedricduval@free.fr> |
---|---|
date | Sun, 21 Jun 2009 17:19:34 +0200 |
parents | 08636e18268f |
children | d0a3eadfbdb3 |
files | mercurial/extensions.py |
diffstat | 1 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/extensions.py Sun Jun 21 17:18:48 2009 +0200 +++ b/mercurial/extensions.py Sun Jun 21 17:19:34 2009 +0200 @@ -138,17 +138,10 @@ if not os.path.exists(path): continue - if name in exts or name == '__init__': + if name in exts or name in _order or name == '__init__': continue try: - find(name) - except KeyError: - pass - else: - continue # enabled extension - - try: file = open(path) except IOError: continue