2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2018-06-15 04:40:53 +03:00
|
|
|
#require no-fsmonitor
|
|
|
|
|
2019-05-28 13:12:27 +03:00
|
|
|
$ setconfig extensions.treemanifest=!
|
2018-01-23 23:08:47 +03:00
|
|
|
$ hg debugextensions --excludedefault
|
2015-09-10 17:53:07 +03:00
|
|
|
|
|
|
|
$ debugpath=`pwd`/extwithoutinfos.py
|
|
|
|
|
|
|
|
$ cat > extwithoutinfos.py <<EOF
|
|
|
|
> EOF
|
2016-08-31 17:36:37 +03:00
|
|
|
$ cat > extwithinfos.py <<EOF
|
|
|
|
> testedwith = '3.0 3.1 3.2.1'
|
|
|
|
> buglink = 'https://example.org/bts'
|
|
|
|
> EOF
|
2015-09-10 17:53:07 +03:00
|
|
|
|
|
|
|
$ cat >> $HGRCPATH <<EOF
|
|
|
|
> [extensions]
|
|
|
|
> histedit=
|
|
|
|
> rebase=
|
|
|
|
> mq=
|
|
|
|
> ext1 = $debugpath
|
2016-08-31 17:36:37 +03:00
|
|
|
> ext2 = `pwd`/extwithinfos.py
|
2015-09-10 17:53:07 +03:00
|
|
|
> EOF
|
|
|
|
|
2018-01-23 23:08:47 +03:00
|
|
|
$ hg debugextensions --excludedefault
|
2015-09-10 17:53:07 +03:00
|
|
|
ext1 (untested!)
|
2016-08-31 17:36:37 +03:00
|
|
|
ext2 (3.2.1!)
|
2015-09-10 17:53:07 +03:00
|
|
|
histedit
|
|
|
|
rebase
|
|
|
|
|
2018-01-23 23:08:47 +03:00
|
|
|
$ hg debugextensions -v --excludedefault
|
2015-09-10 17:53:07 +03:00
|
|
|
ext1
|
2016-03-21 03:30:56 +03:00
|
|
|
location: */extwithoutinfos.py* (glob)
|
2016-08-31 17:22:07 +03:00
|
|
|
bundled: no
|
2016-08-31 17:36:37 +03:00
|
|
|
ext2
|
|
|
|
location: */extwithinfos.py* (glob)
|
2016-08-31 17:22:07 +03:00
|
|
|
bundled: no
|
2016-08-31 17:36:37 +03:00
|
|
|
tested with: 3.0 3.1 3.2.1
|
|
|
|
bug reporting: https://example.org/bts
|
2015-09-10 17:53:07 +03:00
|
|
|
histedit
|
2016-03-21 03:30:56 +03:00
|
|
|
location: */hgext/histedit.py* (glob)
|
2016-08-31 17:22:07 +03:00
|
|
|
bundled: yes
|
2015-09-10 17:53:07 +03:00
|
|
|
rebase
|
2016-03-21 03:30:56 +03:00
|
|
|
location: */hgext/rebase.py* (glob)
|
2016-08-31 17:22:07 +03:00
|
|
|
bundled: yes
|
2015-09-10 17:53:07 +03:00
|
|
|
|
2018-01-23 23:08:47 +03:00
|
|
|
$ hg debugextensions --excludedefault -Tjson | sed 's|\\\\|/|g'
|
2015-09-10 17:53:07 +03:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"buglink": "",
|
2016-08-31 17:22:07 +03:00
|
|
|
"bundled": false,
|
2015-09-10 17:53:07 +03:00
|
|
|
"name": "ext1",
|
2016-03-21 03:30:56 +03:00
|
|
|
"source": "*/extwithoutinfos.py*", (glob)
|
2016-03-20 03:19:03 +03:00
|
|
|
"testedwith": []
|
2015-09-10 17:53:07 +03:00
|
|
|
},
|
2016-08-31 17:36:37 +03:00
|
|
|
{
|
|
|
|
"buglink": "https://example.org/bts",
|
2016-08-31 17:22:07 +03:00
|
|
|
"bundled": false,
|
2016-08-31 17:36:37 +03:00
|
|
|
"name": "ext2",
|
|
|
|
"source": "*/extwithinfos.py*", (glob)
|
|
|
|
"testedwith": ["3.0", "3.1", "3.2.1"]
|
|
|
|
},
|
2015-09-10 17:53:07 +03:00
|
|
|
{
|
|
|
|
"buglink": "",
|
2016-08-31 17:22:07 +03:00
|
|
|
"bundled": true,
|
2015-09-10 17:53:07 +03:00
|
|
|
"name": "histedit",
|
2016-03-21 03:30:56 +03:00
|
|
|
"source": "*/hgext/histedit.py*", (glob)
|
2016-08-26 17:31:17 +03:00
|
|
|
"testedwith": []
|
2015-09-10 17:53:07 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"buglink": "",
|
2016-08-31 17:22:07 +03:00
|
|
|
"bundled": true,
|
2015-09-10 17:53:07 +03:00
|
|
|
"name": "rebase",
|
2016-03-21 03:30:56 +03:00
|
|
|
"source": "*/hgext/rebase.py*", (glob)
|
2016-08-26 17:31:17 +03:00
|
|
|
"testedwith": []
|
2015-09-10 17:53:07 +03:00
|
|
|
}
|
|
|
|
]
|
2016-03-20 03:19:03 +03:00
|
|
|
|
2016-08-31 17:36:37 +03:00
|
|
|
$ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}'
|
|
|
|
ext2
|
|
|
|
$ hg debugextensions \
|
|
|
|
> -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}'
|