mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
2f5130c882
Summary: extdiff uses shutil.rmtree which calls os.rmdir with new python 3 options. Since we pathc os.rmdir, we need to support those options. Reviewed By: quark-zju Differential Revision: D23350968 fbshipit-source-id: 081d179dcd67b51ffdeb6b85899adf4e574a8d0f
86 lines
1.8 KiB
Perl
86 lines
1.8 KiB
Perl
#chg-compatible
|
|
|
|
#require no-fsmonitor
|
|
|
|
$ disable treemanifest
|
|
$ hg debugextensions --excludedefault
|
|
patchrmdir (untested!)
|
|
|
|
$ enable histedit rebase
|
|
$ newext ext1 <<EOF
|
|
> EOF
|
|
$ newext ext2 <<EOF
|
|
> testedwith = '3.0 3.1 3.2.1'
|
|
> buglink = 'https://example.org/bts'
|
|
> EOF
|
|
|
|
$ hg debugextensions --excludedefault
|
|
ext1 (untested!)
|
|
ext2 (3.2.1!)
|
|
histedit
|
|
patchrmdir (untested!)
|
|
rebase
|
|
|
|
$ hg debugextensions -v --excludedefault
|
|
ext1
|
|
location: $TESTTMP/ext1.py* (glob)
|
|
bundled: no
|
|
ext2
|
|
location: $TESTTMP/ext2.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
|
|
patchrmdir
|
|
location: */hgext/patchrmdir.py* (glob)
|
|
bundled: no
|
|
rebase
|
|
location: */hgext/rebase.py* (glob)
|
|
bundled: yes
|
|
|
|
$ hg debugextensions --excludedefault -Tjson | sed 's|\\\\|/|g'
|
|
[
|
|
{
|
|
"buglink": "",
|
|
"bundled": false,
|
|
"name": "ext1",
|
|
"source": "*/ext1.py*", (glob)
|
|
"testedwith": []
|
|
},
|
|
{
|
|
"buglink": "https://example.org/bts",
|
|
"bundled": false,
|
|
"name": "ext2",
|
|
"source": "*/ext2.py*", (glob)
|
|
"testedwith": ["3.0", "3.1", "3.2.1"]
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"bundled": true,
|
|
"name": "histedit",
|
|
"source": "*/hgext/histedit.py*", (glob)
|
|
"testedwith": []
|
|
},
|
|
{
|
|
"buglink": "",
|
|
"bundled": false,
|
|
"name": "patchrmdir",
|
|
"source": "*/hgext/patchrmdir.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")}'
|