Mercurial > hg-stable
comparison mercurial/extensions.py @ 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 | b793ce68f082 |
comparison
equal
deleted
inserted
replaced
8877:08636e18268f | 8878:231f9d92fd7a |
---|---|
136 name = e | 136 name = e |
137 path = os.path.join(extpath, e, '__init__.py') | 137 path = os.path.join(extpath, e, '__init__.py') |
138 if not os.path.exists(path): | 138 if not os.path.exists(path): |
139 continue | 139 continue |
140 | 140 |
141 if name in exts or name == '__init__': | 141 if name in exts or name in _order or name == '__init__': |
142 continue | 142 continue |
143 | |
144 try: | |
145 find(name) | |
146 except KeyError: | |
147 pass | |
148 else: | |
149 continue # enabled extension | |
150 | 143 |
151 try: | 144 try: |
152 file = open(path) | 145 file = open(path) |
153 except IOError: | 146 except IOError: |
154 continue | 147 continue |