##// END OF EJS Templates
debugextensions: hide "ships-with-hg-core" magic string (BC)...
Yuya Nishihara -
r29893:4c28ddda default
parent child Browse files
Show More
@@ -2396,11 +2396,10 b' def debugextensions(ui, **opts):'
2396 2396 for extname, extmod in sorted(exts, key=operator.itemgetter(0)):
2397 2397 isinternal = extensions.ismoduleinternal(extmod)
2398 2398 extsource = extmod.__file__
2399 exttestedwith = getattr(extmod, 'testedwith', '').split()
2400 2399 if isinternal:
2401 showtestedwith = ['internal']
2400 exttestedwith = [] # never expose magic string to users
2402 2401 else:
2403 showtestedwith = exttestedwith
2402 exttestedwith = getattr(extmod, 'testedwith', '').split()
2404 2403 extbuglink = getattr(extmod, 'buglink', None)
2405 2404
2406 2405 fm.startitem()
@@ -2409,10 +2408,10 b' def debugextensions(ui, **opts):'
2409 2408 fm.write('name', '%s\n', extname)
2410 2409 else:
2411 2410 fm.write('name', '%s', extname)
2412 if not exttestedwith:
2411 if isinternal or hgver in exttestedwith:
2412 fm.plain('\n')
2413 elif not exttestedwith:
2413 2414 fm.plain(_(' (untested!)\n'))
2414 elif isinternal or hgver in exttestedwith:
2415 fm.plain('\n')
2416 2415 else:
2417 2416 lasttestedversion = exttestedwith[-1]
2418 2417 fm.plain(' (%s!)\n' % lasttestedversion)
@@ -2424,9 +2423,9 b' def debugextensions(ui, **opts):'
2424 2423 fm.plain(_(' bundled: %s\n') % ['no', 'yes'][isinternal])
2425 2424 fm.data(bundled=isinternal)
2426 2425
2427 fm.condwrite(ui.verbose and showtestedwith, 'testedwith',
2426 fm.condwrite(ui.verbose and exttestedwith, 'testedwith',
2428 2427 _(' tested with: %s\n'),
2429 fm.formatlist(showtestedwith, name='ver'))
2428 fm.formatlist(exttestedwith, name='ver'))
2430 2429
2431 2430 fm.condwrite(ui.verbose and extbuglink, 'buglink',
2432 2431 _(' bug reporting: %s\n'), extbuglink or "")
@@ -33,7 +33,6 b''
33 33 color
34 34 location: */hgext/color.py* (glob)
35 35 bundled: yes
36 tested with: internal
37 36 ext1
38 37 location: */extwithoutinfos.py* (glob)
39 38 bundled: no
@@ -45,19 +44,15 b''
45 44 histedit
46 45 location: */hgext/histedit.py* (glob)
47 46 bundled: yes
48 tested with: internal
49 47 mq
50 48 location: */hgext/mq.py* (glob)
51 49 bundled: yes
52 tested with: internal
53 50 patchbomb
54 51 location: */hgext/patchbomb.py* (glob)
55 52 bundled: yes
56 tested with: internal
57 53 rebase
58 54 location: */hgext/rebase.py* (glob)
59 55 bundled: yes
60 tested with: internal
61 56
62 57 $ hg debugextensions -Tjson | sed 's|\\\\|/|g'
63 58 [
@@ -66,7 +61,7 b''
66 61 "bundled": true,
67 62 "name": "color",
68 63 "source": "*/hgext/color.py*", (glob)
69 "testedwith": ["internal"]
64 "testedwith": []
70 65 },
71 66 {
72 67 "buglink": "",
@@ -87,28 +82,28 b''
87 82 "bundled": true,
88 83 "name": "histedit",
89 84 "source": "*/hgext/histedit.py*", (glob)
90 "testedwith": ["internal"]
85 "testedwith": []
91 86 },
92 87 {
93 88 "buglink": "",
94 89 "bundled": true,
95 90 "name": "mq",
96 91 "source": "*/hgext/mq.py*", (glob)
97 "testedwith": ["internal"]
92 "testedwith": []
98 93 },
99 94 {
100 95 "buglink": "",
101 96 "bundled": true,
102 97 "name": "patchbomb",
103 98 "source": "*/hgext/patchbomb.py*", (glob)
104 "testedwith": ["internal"]
99 "testedwith": []
105 100 },
106 101 {
107 102 "buglink": "",
108 103 "bundled": true,
109 104 "name": "rebase",
110 105 "source": "*/hgext/rebase.py*", (glob)
111 "testedwith": ["internal"]
106 "testedwith": []
112 107 }
113 108 ]
114 109
General Comments 0
You need to be logged in to leave comments. Login now