equal
deleted
inserted
replaced
2399 '''show information about active extensions''' |
2399 '''show information about active extensions''' |
2400 exts = extensions.extensions(ui) |
2400 exts = extensions.extensions(ui) |
2401 fm = ui.formatter('debugextensions', opts) |
2401 fm = ui.formatter('debugextensions', opts) |
2402 for extname, extmod in sorted(exts, key=operator.itemgetter(0)): |
2402 for extname, extmod in sorted(exts, key=operator.itemgetter(0)): |
2403 extsource = extmod.__file__ |
2403 extsource = extmod.__file__ |
2404 exttestedwith = getattr(extmod, 'testedwith', None) |
2404 exttestedwith = getattr(extmod, 'testedwith', '').split() |
2405 if exttestedwith is not None: |
|
2406 exttestedwith = exttestedwith.split() |
|
2407 extbuglink = getattr(extmod, 'buglink', None) |
2405 extbuglink = getattr(extmod, 'buglink', None) |
2408 |
2406 |
2409 fm.startitem() |
2407 fm.startitem() |
2410 |
2408 |
2411 if ui.quiet or ui.verbose: |
2409 if ui.quiet or ui.verbose: |
2424 |
2422 |
2425 fm.condwrite(ui.verbose and extsource, 'source', |
2423 fm.condwrite(ui.verbose and extsource, 'source', |
2426 _(' location: %s\n'), extsource or "") |
2424 _(' location: %s\n'), extsource or "") |
2427 |
2425 |
2428 fm.condwrite(ui.verbose and exttestedwith, 'testedwith', |
2426 fm.condwrite(ui.verbose and exttestedwith, 'testedwith', |
2429 _(' tested with: %s\n'), ' '.join(exttestedwith or [])) |
2427 _(' tested with: %s\n'), ' '.join(exttestedwith)) |
2430 |
2428 |
2431 fm.condwrite(ui.verbose and extbuglink, 'buglink', |
2429 fm.condwrite(ui.verbose and extbuglink, 'buglink', |
2432 _(' bug reporting: %s\n'), extbuglink or "") |
2430 _(' bug reporting: %s\n'), extbuglink or "") |
2433 |
2431 |
2434 fm.end() |
2432 fm.end() |