##// END OF EJS Templates
debuginstall: check C extensions only if they are loadable per policy...
Yuya Nishihara -
r32204:85dc5a25 default
parent child Browse files
Show More
@@ -1020,19 +1020,20 b' def debuginstall(ui, **opts):'
1020 fm.write('hgmodules', _("checking installed modules (%s)...\n"),
1020 fm.write('hgmodules', _("checking installed modules (%s)...\n"),
1021 os.path.dirname(pycompat.fsencode(__file__)))
1021 os.path.dirname(pycompat.fsencode(__file__)))
1022
1022
1023 err = None
1023 if policy.policy in ('c', 'allow'):
1024 try:
1024 err = None
1025 from . import (
1025 try:
1026 base85,
1026 from . import (
1027 bdiff,
1027 base85,
1028 mpatch,
1028 bdiff,
1029 osutil,
1029 mpatch,
1030 )
1030 osutil,
1031 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes
1031 )
1032 except Exception as inst:
1032 dir(bdiff), dir(mpatch), dir(base85), dir(osutil) # quiet pyflakes
1033 err = inst
1033 except Exception as inst:
1034 problems += 1
1034 err = inst
1035 fm.condwrite(err, 'extensionserror', " %s\n", err)
1035 problems += 1
1036 fm.condwrite(err, 'extensionserror', " %s\n", err)
1036
1037
1037 compengines = util.compengines._engines.values()
1038 compengines = util.compengines._engines.values()
1038 fm.write('compengines', _('checking registered compression engines (%s)\n'),
1039 fm.write('compengines', _('checking registered compression engines (%s)\n'),
@@ -34,7 +34,7 b' hg debuginstall JSON'
34 "editornotfound": false,
34 "editornotfound": false,
35 "encoding": "ascii",
35 "encoding": "ascii",
36 "encodingerror": null,
36 "encodingerror": null,
37 "extensionserror": null,
37 "extensionserror": null, (no-pure !)
38 "hgmodulepolicy": "*", (glob)
38 "hgmodulepolicy": "*", (glob)
39 "hgmodules": "*mercurial", (glob)
39 "hgmodules": "*mercurial", (glob)
40 "hgver": "*", (glob)
40 "hgver": "*", (glob)
General Comments 0
You need to be logged in to leave comments. Login now