mirror of
https://github.com/facebook/sapling.git
synced 2024-10-12 01:39:21 +03:00
ad813edcbd
Summary: Now that all our repos are treemanifest, let's enable the extension by default in tests. Once we're certain no one needs it in production we'll also make it the default in core Mercurial. This diff includes a minor fix in treemanifest to be aware of always-enabled extensions. It won't matter until we actually add treemanifest to the list of default enabled extensions, but I caught this while testing things. Reviewed By: ikostia Differential Revision: D15030253 fbshipit-source-id: d8361f915928b6ad90665e6ed330c1df5c8d8d86
82 lines
1.7 KiB
Perl
82 lines
1.7 KiB
Perl
#require no-fsmonitor
|
|
|
|
$ setconfig extensions.treemanifest=!
|
|
$ hg debugextensions --excludedefault
|
|
|
|
$ debugpath=`pwd`/extwithoutinfos.py
|
|
|
|
$ cat > extwithoutinfos.py <<EOF
|
|
> EOF
|
|
$ cat > extwithinfos.py <<EOF
|
|
> testedwith = '3.0 3.1 3.2.1'
|
|
> buglink = 'https://example.org/bts'
|
|
> EOF
|
|
|
|
$ cat >> $HGRCPATH <<EOF
|
|
> [extensions]
|
|
> histedit=
|
|
> rebase=
|
|
> mq=
|
|
> ext1 = $debugpath
|
|
> ext2 = `pwd`/extwithinfos.py
|
|
> EOF
|
|
|
|
$ hg debugextensions --excludedefault
|
|
ext1 (untested!)
|
|
ext2 (3.2.1!)
|
|
histedit
|
|
rebase
|
|
|
|
$ hg debugextensions -v --excludedefault
|
|
ext1
|
|
location: */extwithoutinfos.py* (glob)
|
|
bundled: no
|
|
ext2
|
|
location: */extwithinfos.py* (glob)
|
|
bundled: no
|
|
tested with: 3.0 3.1 3.2.1
|
|
bug reporting: https://example.org/bts
|
|
histedit
|
|
location: */hgext/histedit.py* (glob)
|
|
bundled: yes
|
|
rebase
|
|
location: */hgext/rebase.py* (glob)
|
|
bundled: yes
|
|
|
|
$ hg debugextensions --excludedefault -Tjson | sed 's|\\\\|/|g'
|
|
[
|
|
{
|
|
"buglink": "",
|
|
"bundled": false,
|
|
"name": "ext1",
|
|
"source": "*/extwithoutinfos.py*", (glob)
|
|
"testedwith": []
|
|
},
|
|
{
|
|
"buglink": "https://example.org/bts",
|
|
"bundled": false,
|
|
"name": "ext2",
|
|
"source": "*/extwithinfos.py*", (glob)
|
|
"testedwith": ["3.0", "3.1", "3.2.1"]
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"bundled": true,
|
|
"name": "histedit",
|
|
"source": "*/hgext/histedit.py*", (glob)
|
|
"testedwith": []
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"bundled": true,
|
|
"name": "rebase",
|
|
"source": "*/hgext/rebase.py*", (glob)
|
|
"testedwith": []
|
|
}
|
|
]
|
|
|
|
$ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}'
|
|
ext2
|
|
$ hg debugextensions \
|
|
> -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}'
|