Show More
@@ -56,7 +56,7 b' clean:' | |||
|
56 | 56 | find contrib doc hgext i18n mercurial tests \ |
|
57 | 57 | \( -name '*.py[cdo]' -o -name '*.so' \) -exec rm -f '{}' ';' |
|
58 | 58 | rm -f $(addprefix mercurial/,$(notdir $(wildcard mercurial/pure/[a-z]*.py))) |
|
59 | rm -f MANIFEST MANIFEST.in mercurial/__version__.py tests/*.err | |
|
59 | rm -f MANIFEST MANIFEST.in mercurial/__version__.py hgext/__index__.py tests/*.err | |
|
60 | 60 | rm -rf build mercurial/locale |
|
61 | 61 | $(MAKE) -C doc clean |
|
62 | 62 |
@@ -281,7 +281,7 b' def disabled():' | |||
|
281 | 281 | return dict((name, gettext(desc)) |
|
282 | 282 | for name, desc in __index__.docs.iteritems() |
|
283 | 283 | if name not in _order) |
|
284 | except ImportError: | |
|
284 | except (ImportError, AttributeError): | |
|
285 | 285 | pass |
|
286 | 286 | |
|
287 | 287 | paths = _disabledpaths() |
@@ -304,7 +304,7 b' def disabledext(name):' | |||
|
304 | 304 | return |
|
305 | 305 | else: |
|
306 | 306 | return gettext(__index__.docs.get(name)) |
|
307 | except ImportError: | |
|
307 | except (ImportError, AttributeError): | |
|
308 | 308 | pass |
|
309 | 309 | |
|
310 | 310 | paths = _disabledpaths() |
@@ -331,7 +331,9 b' class buildhgextindex(Command):' | |||
|
331 | 331 | |
|
332 | 332 | def run(self): |
|
333 | 333 | if os.path.exists(self._indexfilename): |
|
334 |
|
|
|
334 | f = open(self._indexfilename, 'w') | |
|
335 | f.write('# empty\n') | |
|
336 | f.close() | |
|
335 | 337 | |
|
336 | 338 | # here no extension enabled, disabled() lists up everything |
|
337 | 339 | code = ('import pprint; from mercurial import extensions; ' |
General Comments 0
You need to be logged in to leave comments.
Login now