Mercurial > hg
comparison doc/check-seclevel.py @ 27511:44a596a8bed1
check-seclevel: pass a ui to the extension loader
Without this, if an import error occurs (as with pypy), the attempt to
report it fails since ui is None.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Tue, 22 Dec 2015 21:38:06 -0800 |
parents | 020d93c4a727 |
children | 1b8c7d59be43 |
comparison
equal
deleted
inserted
replaced
27510:020d93c4a727 | 27511:44a596a8bed1 |
---|---|
85 | 85 |
86 errorcnt += checkcmdtable(ui, table, '%s command', initlevel_cmd) | 86 errorcnt += checkcmdtable(ui, table, '%s command', initlevel_cmd) |
87 | 87 |
88 for name in sorted(extensions.enabled().keys() + | 88 for name in sorted(extensions.enabled().keys() + |
89 extensions.disabled().keys()): | 89 extensions.disabled().keys()): |
90 mod = extensions.load(None, name, None) | 90 mod = extensions.load(ui, name, None) |
91 if not mod.__doc__: | 91 if not mod.__doc__: |
92 ui.note(('skip checking %s extension: no help document\n') % name) | 92 ui.note(('skip checking %s extension: no help document\n') % name) |
93 continue | 93 continue |
94 errorcnt += checkseclevel(ui, mod.__doc__, | 94 errorcnt += checkseclevel(ui, mod.__doc__, |
95 '%s extension' % name, | 95 '%s extension' % name, |