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