test-debugextensions.t
101 lines
| 2.0 KiB
| text/troff
|
Tads3Lexer
/ tests / test-debugextensions.t
|
r26351 | $ hg debugextensions | ||
$ debugpath=`pwd`/extwithoutinfos.py | ||||
$ cat > extwithoutinfos.py <<EOF | ||||
> EOF | ||||
|
r29891 | $ cat > extwithinfos.py <<EOF | ||
> testedwith = '3.0 3.1 3.2.1' | ||||
> buglink = 'https://example.org/bts' | ||||
> EOF | ||||
|
r26351 | |||
$ cat >> $HGRCPATH <<EOF | ||||
> [extensions] | ||||
> histedit= | ||||
> patchbomb= | ||||
> rebase= | ||||
> mq= | ||||
> ext1 = $debugpath | ||||
|
r29891 | > ext2 = `pwd`/extwithinfos.py | ||
|
r26351 | > EOF | ||
$ hg debugextensions | ||||
ext1 (untested!) | ||||
|
r29891 | ext2 (3.2.1!) | ||
|
r26351 | histedit | ||
mq | ||||
patchbomb | ||||
rebase | ||||
$ hg debugextensions -v | ||||
ext1 | ||||
|
r28615 | location: */extwithoutinfos.py* (glob) | ||
|
r29892 | bundled: no | ||
|
r29891 | ext2 | ||
location: */extwithinfos.py* (glob) | ||||
|
r29892 | bundled: no | ||
|
r29891 | tested with: 3.0 3.1 3.2.1 | ||
bug reporting: https://example.org/bts | ||||
|
r26351 | histedit | ||
|
r28615 | location: */hgext/histedit.py* (glob) | ||
|
r29892 | bundled: yes | ||
|
r26351 | mq | ||
|
r28615 | location: */hgext/mq.py* (glob) | ||
|
r29892 | bundled: yes | ||
|
r26351 | patchbomb | ||
|
r28615 | location: */hgext/patchbomb.py* (glob) | ||
|
r29892 | bundled: yes | ||
|
r26351 | rebase | ||
|
r28615 | location: */hgext/rebase.py* (glob) | ||
|
r29892 | bundled: yes | ||
|
r26351 | |||
|
r26430 | $ hg debugextensions -Tjson | sed 's|\\\\|/|g' | ||
|
r26351 | [ | ||
{ | ||||
"buglink": "", | ||||
|
r29892 | "bundled": false, | ||
|
r26351 | "name": "ext1", | ||
|
r28615 | "source": "*/extwithoutinfos.py*", (glob) | ||
|
r29703 | "testedwith": [] | ||
|
r26351 | }, | ||
{ | ||||
|
r29891 | "buglink": "https://example.org/bts", | ||
|
r29892 | "bundled": false, | ||
|
r29891 | "name": "ext2", | ||
"source": "*/extwithinfos.py*", (glob) | ||||
"testedwith": ["3.0", "3.1", "3.2.1"] | ||||
}, | ||||
{ | ||||
|
r26351 | "buglink": "", | ||
|
r29892 | "bundled": true, | ||
|
r26351 | "name": "histedit", | ||
|
r28615 | "source": "*/hgext/histedit.py*", (glob) | ||
|
r29893 | "testedwith": [] | ||
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
|
r29892 | "bundled": true, | ||
|
r26351 | "name": "mq", | ||
|
r28615 | "source": "*/hgext/mq.py*", (glob) | ||
|
r29893 | "testedwith": [] | ||
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
|
r29892 | "bundled": true, | ||
|
r26351 | "name": "patchbomb", | ||
|
r28615 | "source": "*/hgext/patchbomb.py*", (glob) | ||
|
r29893 | "testedwith": [] | ||
|
r26351 | }, | ||
{ | ||||
"buglink": "", | ||||
|
r29892 | "bundled": true, | ||
|
r26351 | "name": "rebase", | ||
|
r28615 | "source": "*/hgext/rebase.py*", (glob) | ||
|
r29893 | "testedwith": [] | ||
|
r26351 | } | ||
] | ||||
|
r29703 | |||
|
r29891 | $ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}' | ||
ext2 | ||||
$ hg debugextensions \ | ||||
> -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}' | ||||