##// END OF EJS Templates
revlog: subclass the new `repository.iverifyproblem` Protocol class...
revlog: subclass the new `repository.iverifyproblem` Protocol class This is the same transformation as 3a90a6fd710d did for dirstate, but the CamelCase naming was already cleaned up here. We shouldn't have to explicitly subclass, but I'm doing so to test the interplay of regular attributes and the `attrs` class. Also, PyCharm has a nifty feature that puts a jump point in the gutter to navigate back and forth between the base class and subclasses (and override functions and base class functions) when there's an explicit subclassing. Additionally, PyCharm will immediately flag signature mismatches without a 40m pytype run.

File last commit:

r50730:4836705a stable
r53365:4ef6dbc2 default
Show More
test-debugextensions.t
115 lines | 2.9 KiB | text/troff | Tads3Lexer
/ tests / test-debugextensions.t
Gregory Szorc
tests: conditionalize tests based on presence of custom extensions...
r37360 #if no-extraextensions
liscju
mercurial: add debugextensions command (issue4676)...
r26351 $ hg debugextensions
Gregory Szorc
tests: conditionalize tests based on presence of custom extensions...
r37360 #endif
liscju
mercurial: add debugextensions command (issue4676)...
r26351
$ debugpath=`pwd`/extwithoutinfos.py
$ cat > extwithoutinfos.py <<EOF
> EOF
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 $ cat > extwithinfos.py <<EOF
Augie Fackler
py3: add missing b prefixes in test-debugextensions.t...
r36585 > testedwith = b'3.0 3.1 3.2.1'
> buglink = b'https://example.org/bts'
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 > EOF
liscju
mercurial: add debugextensions command (issue4676)...
r26351
$ cat >> $HGRCPATH <<EOF
> [extensions]
> histedit=
> patchbomb=
> rebase=
> mq=
> ext1 = $debugpath
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 > ext2 = `pwd`/extwithinfos.py
liscju
mercurial: add debugextensions command (issue4676)...
r26351 > EOF
Gregory Szorc
tests: conditionalize tests based on presence of custom extensions...
r37360 $ for extension in $HGTESTEXTRAEXTENSIONS; do
> echo "$extension=!" >> $HGRCPATH
> done
liscju
mercurial: add debugextensions command (issue4676)...
r26351 $ hg debugextensions
ext1 (untested!)
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 ext2 (3.2.1!)
liscju
mercurial: add debugextensions command (issue4676)...
r26351 histedit
mq
patchbomb
rebase
$ hg debugextensions -v
ext1
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 location: */extwithoutinfos.py* (glob)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: no
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 ext2
location: */extwithinfos.py* (glob)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: no
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 tested with: 3.0 3.1 3.2.1
bug reporting: https://example.org/bts
liscju
mercurial: add debugextensions command (issue4676)...
r26351 histedit
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 location: */hgext/histedit.py* (glob) (no-pyoxidizer-in-memory !)
location: */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: yes
liscju
mercurial: add debugextensions command (issue4676)...
r26351 mq
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 location: */hgext/mq.py* (glob) (no-pyoxidizer-in-memory !)
location: */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: yes
liscju
mercurial: add debugextensions command (issue4676)...
r26351 patchbomb
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 location: */hgext/patchbomb.py* (glob) (no-pyoxidizer-in-memory !)
location: */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: yes
liscju
mercurial: add debugextensions command (issue4676)...
r26351 rebase
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 location: */hgext/rebase.py* (glob) (no-pyoxidizer-in-memory !)
location: */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 bundled: yes
liscju
mercurial: add debugextensions command (issue4676)...
r26351
Matt Harbison
test-debugextensions: sanitize JSON output for Windows...
r26430 $ hg debugextensions -Tjson | sed 's|\\\\|/|g'
liscju
mercurial: add debugextensions command (issue4676)...
r26351 [
{
"buglink": "",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": false,
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "name": "ext1",
Kevin Bullock
test-debugextensions: passes with byte-compilation disabled (issue5147)
r28615 "source": "*/extwithoutinfos.py*", (glob)
Yuya Nishihara
debugextension: change "testedwith" to a list (BC)...
r29703 "testedwith": []
liscju
mercurial: add debugextensions command (issue4676)...
r26351 },
{
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 "buglink": "https://example.org/bts",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": false,
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 "name": "ext2",
"source": "*/extwithinfos.py*", (glob)
"testedwith": ["3.0", "3.1", "3.2.1"]
},
{
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "buglink": "",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": true,
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "name": "histedit",
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 "source": "*/hgext/histedit.py*", (glob) (no-pyoxidizer-in-memory !)
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: hide "ships-with-hg-core" magic string (BC)...
r29893 "testedwith": []
liscju
mercurial: add debugextensions command (issue4676)...
r26351 },
{
"buglink": "",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": true,
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "name": "mq",
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 "source": "*/hgext/mq.py*", (glob) (no-pyoxidizer-in-memory !)
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: hide "ships-with-hg-core" magic string (BC)...
r29893 "testedwith": []
liscju
mercurial: add debugextensions command (issue4676)...
r26351 },
{
"buglink": "",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": true,
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "name": "patchbomb",
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 "source": "*/hgext/patchbomb.py*", (glob) (no-pyoxidizer-in-memory !)
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: hide "ships-with-hg-core" magic string (BC)...
r29893 "testedwith": []
liscju
mercurial: add debugextensions command (issue4676)...
r26351 },
{
"buglink": "",
Yuya Nishihara
debugextensions: show ships-with-hg-core state as a separate field...
r29892 "bundled": true,
liscju
mercurial: add debugextensions command (issue4676)...
r26351 "name": "rebase",
Matt Harbison
tests: conditionalize path output for in-memory pyoxidizer resources
r50730 "source": "*/hgext/rebase.py*", (glob) (no-pyoxidizer-in-memory !)
"source": */release/app/hg* (glob) (pyoxidizer-in-memory !)
Yuya Nishihara
debugextensions: hide "ships-with-hg-core" magic string (BC)...
r29893 "testedwith": []
liscju
mercurial: add debugextensions command (issue4676)...
r26351 }
]
Yuya Nishihara
debugextension: change "testedwith" to a list (BC)...
r29703
Yuya Nishihara
test-debugextensions: add dummy extension to make ifcontains() test more solid...
r29891 $ hg debugextensions -T '{ifcontains("3.1", testedwith, "{name}\n")}'
ext2
$ hg debugextensions \
> -T '{ifcontains("3.2", testedwith, "no substring match: {name}\n")}'