Show More
@@ -1,101 +1,101 b'' | |||||
1 | $ hg debugextensions |
|
1 | $ hg debugextensions | |
2 |
|
2 | |||
3 | $ debugpath=`pwd`/extwithoutinfos.py |
|
3 | $ debugpath=`pwd`/extwithoutinfos.py | |
4 |
|
4 | |||
5 | $ cat > extwithoutinfos.py <<EOF |
|
5 | $ cat > extwithoutinfos.py <<EOF | |
6 | > EOF |
|
6 | > EOF | |
7 | $ cat > extwithinfos.py <<EOF |
|
7 | $ cat > extwithinfos.py <<EOF | |
8 | > testedwith = '3.0 3.1 3.2.1' |
|
8 | > testedwith = b'3.0 3.1 3.2.1' | |
9 | > buglink = 'https://example.org/bts' |
|
9 | > buglink = b'https://example.org/bts' | |
10 | > EOF |
|
10 | > EOF | |
11 |
|
11 | |||
12 | $ cat >> $HGRCPATH <<EOF |
|
12 | $ cat >> $HGRCPATH <<EOF | |
13 | > [extensions] |
|
13 | > [extensions] | |
14 | > histedit= |
|
14 | > histedit= | |
15 | > patchbomb= |
|
15 | > patchbomb= | |
16 | > rebase= |
|
16 | > rebase= | |
17 | > mq= |
|
17 | > mq= | |
18 | > ext1 = $debugpath |
|
18 | > ext1 = $debugpath | |
19 | > ext2 = `pwd`/extwithinfos.py |
|
19 | > ext2 = `pwd`/extwithinfos.py | |
20 | > EOF |
|
20 | > EOF | |
21 |
|
21 | |||
22 | $ hg debugextensions |
|
22 | $ hg debugextensions | |
23 | ext1 (untested!) |
|
23 | ext1 (untested!) | |
24 | ext2 (3.2.1!) |
|
24 | ext2 (3.2.1!) | |
25 | histedit |
|
25 | histedit | |
26 | mq |
|
26 | mq | |
27 | patchbomb |
|
27 | patchbomb | |
28 | rebase |
|
28 | rebase | |
29 |
|
29 | |||
30 | $ hg debugextensions -v |
|
30 | $ hg debugextensions -v | |
31 | ext1 |
|
31 | ext1 | |
32 | location: */extwithoutinfos.py* (glob) |
|
32 | location: */extwithoutinfos.py* (glob) | |
33 | bundled: no |
|
33 | bundled: no | |
34 | ext2 |
|
34 | ext2 | |
35 | location: */extwithinfos.py* (glob) |
|
35 | location: */extwithinfos.py* (glob) | |
36 | bundled: no |
|
36 | bundled: no | |
37 | tested with: 3.0 3.1 3.2.1 |
|
37 | tested with: 3.0 3.1 3.2.1 | |
38 | bug reporting: https://example.org/bts |
|
38 | bug reporting: https://example.org/bts | |
39 | histedit |
|
39 | histedit | |
40 | location: */hgext/histedit.py* (glob) |
|
40 | location: */hgext/histedit.py* (glob) | |
41 | bundled: yes |
|
41 | bundled: yes | |
42 | mq |
|
42 | mq | |
43 | location: */hgext/mq.py* (glob) |
|
43 | location: */hgext/mq.py* (glob) | |
44 | bundled: yes |
|
44 | bundled: yes | |
45 | patchbomb |
|
45 | patchbomb | |
46 | location: */hgext/patchbomb.py* (glob) |
|
46 | location: */hgext/patchbomb.py* (glob) | |
47 | bundled: yes |
|
47 | bundled: yes | |
48 | rebase |
|
48 | rebase | |
49 | location: */hgext/rebase.py* (glob) |
|
49 | location: */hgext/rebase.py* (glob) | |
50 | bundled: yes |
|
50 | bundled: yes | |
51 |
|
51 | |||
52 | $ hg debugextensions -Tjson | sed 's|\\\\|/|g' |
|
52 | $ hg debugextensions -Tjson | sed 's|\\\\|/|g' | |
53 | [ |
|
53 | [ | |
54 | { |
|
54 | { | |
55 | "buglink": "", |
|
55 | "buglink": "", | |
56 | "bundled": false, |
|
56 | "bundled": false, | |
57 | "name": "ext1", |
|
57 | "name": "ext1", | |
58 | "source": "*/extwithoutinfos.py*", (glob) |
|
58 | "source": "*/extwithoutinfos.py*", (glob) | |
59 | "testedwith": [] |
|
59 | "testedwith": [] | |
60 | }, |
|
60 | }, | |
61 | { |
|
61 | { | |
62 | "buglink": "https://example.org/bts", |
|
62 | "buglink": "https://example.org/bts", | |
63 | "bundled": false, |
|
63 | "bundled": false, | |
64 | "name": "ext2", |
|
64 | "name": "ext2", | |
65 | "source": "*/extwithinfos.py*", (glob) |
|
65 | "source": "*/extwithinfos.py*", (glob) | |
66 | "testedwith": ["3.0", "3.1", "3.2.1"] |
|
66 | "testedwith": ["3.0", "3.1", "3.2.1"] | |
67 | }, |
|
67 | }, | |
68 | { |
|
68 | { | |
69 | "buglink": "", |
|
69 | "buglink": "", | |
70 | "bundled": true, |
|
70 | "bundled": true, | |
71 | "name": "histedit", |
|
71 | "name": "histedit", | |
72 | "source": "*/hgext/histedit.py*", (glob) |
|
72 | "source": "*/hgext/histedit.py*", (glob) | |
73 | "testedwith": [] |
|
73 | "testedwith": [] | |
74 | }, |
|
74 | }, | |
75 | { |
|
75 | { | |
76 | "buglink": "", |
|
76 | "buglink": "", | |
77 | "bundled": true, |
|
77 | "bundled": true, | |
78 | "name": "mq", |
|
78 | "name": "mq", | |
79 | "source": "*/hgext/mq.py*", (glob) |
|
79 | "source": "*/hgext/mq.py*", (glob) | |
80 | "testedwith": [] |
|
80 | "testedwith": [] | |
81 | }, |
|
81 | }, | |
82 | { |
|
82 | { | |
83 | "buglink": "", |
|
83 | "buglink": "", | |
84 | "bundled": true, |
|
84 | "bundled": true, | |
85 | "name": "patchbomb", |
|
85 | "name": "patchbomb", | |
86 | "source": "*/hgext/patchbomb.py*", (glob) |
|
86 | "source": "*/hgext/patchbomb.py*", (glob) | |
87 | "testedwith": [] |
|
87 | "testedwith": [] | |
88 | }, |
|
88 | }, | |
89 | { |
|
89 | { | |
90 | "buglink": "", |
|
90 | "buglink": "", | |
91 | "bundled": true, |
|
91 | "bundled": true, | |
92 | "name": "rebase", |
|
92 | "name": "rebase", | |
93 | "source": "*/hgext/rebase.py*", (glob) |
|
93 | "source": "*/hgext/rebase.py*", (glob) | |
94 | "testedwith": [] |
|
94 | "testedwith": [] | |
95 | } |
|
95 | } | |
96 | ] |
|
96 | ] | |
97 |
|
97 | |||
98 | $ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}' |
|
98 | $ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}' | |
99 | ext2 |
|
99 | ext2 | |
100 | $ hg debugextensions \ |
|
100 | $ hg debugextensions \ | |
101 | > -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}' |
|
101 | > -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}' |
General Comments 0
You need to be logged in to leave comments.
Login now