test-walk.t
652 lines
| 22.2 KiB
| text/troff
|
Tads3Lexer
/ tests / test-walk.t
Martin Geisler
|
r13956 | $ hg init t | ||
Nicolas Dumazet
|
r11799 | $ cd t | ||
$ mkdir -p beans | ||||
$ for b in kidney navy turtle borlotti black pinto; do | ||||
> echo $b > beans/$b | ||||
Mads Kiilerich
|
r19873 | > done | ||
Nicolas Dumazet
|
r11799 | $ mkdir -p mammals/Procyonidae | ||
$ for m in cacomistle coatimundi raccoon; do | ||||
> echo $m > mammals/Procyonidae/$m | ||||
Mads Kiilerich
|
r19873 | > done | ||
Nicolas Dumazet
|
r11799 | $ echo skunk > mammals/skunk | ||
$ echo fennel > fennel | ||||
$ echo fenugreek > fenugreek | ||||
$ echo fiddlehead > fiddlehead | ||||
$ hg addremove | ||||
adding beans/black | ||||
adding beans/borlotti | ||||
adding beans/kidney | ||||
adding beans/navy | ||||
adding beans/pinto | ||||
adding beans/turtle | ||||
adding fennel | ||||
adding fenugreek | ||||
adding fiddlehead | ||||
adding mammals/Procyonidae/cacomistle | ||||
adding mammals/Procyonidae/coatimundi | ||||
adding mammals/Procyonidae/raccoon | ||||
adding mammals/skunk | ||||
Martin Geisler
|
r12156 | $ hg commit -m "commit #0" | ||
Nicolas Dumazet
|
r11799 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<alwaysmatcher> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
f fennel fennel | ||||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
f mammals/skunk mammals/skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I. | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
f fennel fennel | ||||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
f mammals/skunk mammals/skunk | ||||
$ cd mammals | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<alwaysmatcher> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
f fennel ../fennel | ||||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -X ../beans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<alwaysmatcher>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Nicolas Dumazet
|
r11799 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I '*k' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals\\/[^/]*k(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'glob:*k' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals\\/[^/]*k(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'relglob:*k' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'relglob:*k' . | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <intersectionmatcher | ||
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>, | ||||
m2=<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'>> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 're:.*k$' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:.*k$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'relre:.*k$' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:.*.*k$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'path:beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'relpath:detour/../../beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
Rodrigo Damazio Bovendorp
|
r31012 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:.' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:.' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -X 'rootfilesin:' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<alwaysmatcher>, | ||||
m2=<includematcher includes='(?:[^/]+$)'>> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:fennel' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fennel/[^/]+$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:fennel' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:fennel/[^/]+$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:skunk' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:skunk/[^/]+$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:skunk' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:skunk/[^/]+$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:mammals' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:mammals' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'rootfilesin:mammals/' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:mammals/' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals/[^/]+$)'> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f mammals/skunk skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -X 'rootfilesin:mammals' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<alwaysmatcher>, | ||||
m2=<includematcher includes='(?:mammals/[^/]+$)'>> | ||||
Rodrigo Damazio Bovendorp
|
r31012 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
f fennel ../fennel | ||||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v . | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I. | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v Procyonidae | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/Procyonidae(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
$ cd Procyonidae | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v . | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/Procyonidae(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle cacomistle | ||
f mammals/Procyonidae/coatimundi coatimundi | ||||
f mammals/Procyonidae/raccoon raccoon | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v .. | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle cacomistle | ||
f mammals/Procyonidae/coatimundi coatimundi | ||||
f mammals/Procyonidae/raccoon raccoon | ||||
f mammals/skunk ../skunk | ||||
$ cd .. | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v ../beans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black ../beans/black | ||
f beans/borlotti ../beans/borlotti | ||||
f beans/kidney ../beans/kidney | ||||
f beans/navy ../beans/navy | ||||
f beans/pinto ../beans/pinto | ||||
f beans/turtle ../beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v . | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v .hg | ||
Matt Harbison
|
r35394 | abort: path 'mammals/.hg' is inside nested repo 'mammals' | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v ../.hg | ||
Simon Heimberg
|
r18682 | abort: path contains illegal component: .hg | ||
Matt Mackall
|
r12316 | [255] | ||
Nicolas Dumazet
|
r11799 | $ cd .. | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Ibeans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I '{*,{b,m}*/*}k' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:(?:[^/]*|(?:b|m)[^/]*\\/[^/]*)k(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f fenugreek fenugreek | ||||
f mammals/skunk mammals/skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Ibeans mammals | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <intersectionmatcher | ||
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Inon-existent | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:non\\-existent(?:/|$))'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Inon-existent -Ibeans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:non\\-existent(?:/|$)|beans\\/black(?:/|$))'> | ||||
Martin von Zweigbergk
|
r25217 | f beans/black beans/black | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Ibeans beans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <intersectionmatcher | ||
m1=<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Martin von Zweigbergk
|
r25217 | f beans/black beans/black exact | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Ibeans/black beans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <intersectionmatcher | ||
m1=<patternmatcher patterns='(?:beans(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
Martin von Zweigbergk
|
r25217 | f beans/black beans/black | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans/black beans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:beans(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
Martin von Zweigbergk
|
r25217 | f beans/borlotti beans/borlotti | ||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans/black -Ibeans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<includematcher includes='(?:beans(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
Martin von Zweigbergk
|
r25217 | f beans/borlotti beans/borlotti | ||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans/black beans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans/black -Ibeans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<includematcher includes='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans beans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -Xbeans -Ibeans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<includematcher includes='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'glob:mammals/../beans/b*' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/b[^/]*$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v '-X*/Procyonidae' mammals | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>, | ||||
m2=<includematcher includes='(?:[^/]*\\/Procyonidae(?:/|$))'>> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk mammals/skunk | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v path:mammals | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
f mammals/skunk mammals/skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v .. | ||
Matt Harbison
|
r35394 | abort: .. not under root '$TESTTMP/t' | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans/../.. | ||
Matt Harbison
|
r35394 | abort: beans/../.. not under root '$TESTTMP/t' | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v .hg | ||
Simon Heimberg
|
r18682 | abort: path contains illegal component: .hg | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans/../.hg | ||
Simon Heimberg
|
r18682 | abort: path contains illegal component: .hg | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans/../.hg/data | ||
Matt Harbison
|
r35394 | abort: path contains illegal component: .hg/data | ||
Matt Mackall
|
r12316 | [255] | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans/.hg | ||
Matt Harbison
|
r35394 | abort: path 'beans/.hg' is inside nested repo 'beans' | ||
Matt Mackall
|
r12316 | [255] | ||
Nicolas Dumazet
|
r11799 | |||
Yuya Nishihara
|
r35677 | Test explicit paths and excludes: | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v fennel -X fennel | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:fennel(?:/|$))'>, | ||||
m2=<includematcher includes='(?:fennel(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v fennel -X 'f*' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:fennel(?:/|$))'>, | ||||
m2=<includematcher includes='(?:f[^/]*(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans/black -X 'path:beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'path:beans/black' -X 'path:beans' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
Yuya Nishihara
|
r38283 | <differencematcher | ||
m1=<includematcher includes='(?:beans\\/black(?:/|$))'>, | ||||
m2=<includematcher includes='(?:beans(?:/|$))'>> | ||||
Yuya Nishihara
|
r35677 | |||
Matt Mackall
|
r11903 | Test absolute paths: | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v `pwd`/beans | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$))'> | ||||
Matt Mackall
|
r11903 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v `pwd`/.. | ||
Matt Harbison
|
r35394 | abort: $TESTTMP/t/.. not under root '$TESTTMP/t' | ||
Matt Mackall
|
r12316 | [255] | ||
Matt Mackall
|
r11903 | |||
Test patterns: | ||||
Nicolas Dumazet
|
r11799 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v glob:\* | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]*$)'> | ||||
Nicolas Dumazet
|
r11799 | f fennel fennel | ||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
Mads Kiilerich
|
r16983 | #if eol-in-paths | ||
$ echo glob:glob > glob:glob | ||||
$ hg addremove | ||||
adding glob:glob | ||||
warning: filename contains ':', which is reserved on Windows: 'glob:glob' | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v glob:\* | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]*$)'> | ||||
Mads Kiilerich
|
r16983 | f fennel fennel | ||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
Nicolas Dumazet
|
r11799 | f glob:glob glob:glob | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v glob:glob | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob$)'> | ||||
Matt Harbison
|
r35230 | glob: $ENOENT$ | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v glob:glob:glob | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob\\:glob$)'> | ||||
Mads Kiilerich
|
r16984 | f glob:glob glob:glob exact | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v path:glob:glob | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob\\:glob(?:/|$))'> | ||||
Mads Kiilerich
|
r16984 | f glob:glob glob:glob exact | ||
Mads Kiilerich
|
r16983 | $ rm glob:glob | ||
$ hg addremove | ||||
removing glob:glob | ||||
#endif | ||||
Matt Mackall
|
r11903 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'glob:**e' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:.*e$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/turtle beans/turtle | ||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
Matt Mackall
|
r11903 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 're:.*[kb]$' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:.*[kb]$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f fenugreek fenugreek | ||||
f mammals/skunk mammals/skunk | ||||
Matt Mackall
|
r11903 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v path:beans/black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black exact | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v path:beans//black | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black exact | ||
Matt Mackall
|
r11903 | |||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v relglob:Procyonidae | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'relglob:Procyonidae/**' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae\\/.*$)'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'relglob:Procyonidae/**' fennel | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae\\/.*$|fennel(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f fennel fennel exact | ||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v beans 'glob:beans/*' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$)|beans\\/[^/]*$)'> | ||||
Nicolas Dumazet
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
f beans/kidney beans/kidney | ||||
f beans/navy beans/navy | ||||
f beans/pinto beans/pinto | ||||
f beans/turtle beans/turtle | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'glob:mamm**' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mamm.*$)'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
f mammals/skunk mammals/skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'glob:mamm**' fennel | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mamm.*$|fennel(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f fennel fennel exact | ||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
f mammals/skunk mammals/skunk | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v 'glob:j*' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:j[^/]*$)'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v NOEXIST | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:NOEXIST(?:/|$))'> | ||||
Mads Kiilerich
|
r15521 | NOEXIST: * (glob) | ||
Nicolas Dumazet
|
r11799 | |||
Mads Kiilerich
|
r16972 | #if fifo | ||
Nicolas Dumazet
|
r11799 | $ mkfifo fifo | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v fifo | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fifo(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | fifo: unsupported file type (type is fifo) | ||
Mads Kiilerich
|
r16972 | #endif | ||
Nicolas Dumazet
|
r11799 | |||
$ rm fenugreek | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v fenugreek | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fenugreek(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f fenugreek fenugreek exact | ||
$ hg rm fenugreek | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v fenugreek | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fenugreek(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f fenugreek fenugreek exact | ||
$ touch new | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v new | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:new(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f new new exact | ||
$ mkdir ignored | ||||
$ touch ignored/file | ||||
$ echo '^ignored$' > .hgignore | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v ignored | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:ignored(?:/|$))'> | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v ignored/file | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:ignored\\/file(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f ignored/file ignored/file exact | ||
Patrick Mezard
|
r14248 | Test listfile and listfile0 | ||
Pulkit Goyal
|
r36032 | $ $PYTHON -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')" | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'listfile0:listfile0' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$))'> | ||||
Patrick Mezard
|
r14248 | f fenugreek fenugreek | ||
f new new | ||||
Pulkit Goyal
|
r36032 | $ $PYTHON -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')" | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -I 'listfile:listfile' | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$)|mammals\\/skunk(?:/|$))'> | ||||
Patrick Mezard
|
r14248 | f fenugreek fenugreek | ||
f mammals/skunk mammals/skunk | ||||
f new new | ||||
Nicolas Dumazet
|
r11799 | $ cd .. | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -R t t/mammals/skunk | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk t/mammals/skunk exact | ||
$ mkdir t2 | ||||
$ cd t2 | ||||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v -R ../t ../t/mammals/skunk | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk ../t/mammals/skunk exact | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk -v --cwd ../t mammals/skunk | ||
Yuya Nishihara
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
Nicolas Dumazet
|
r11799 | f mammals/skunk mammals/skunk exact | ||
Mads Kiilerich
|
r16913 | |||
$ cd .. | ||||
Yuya Nishihara
|
r21191 | |||
Test split patterns on overflow | ||||
$ cd t | ||||
$ echo fennel > overflow.list | ||||
Pulkit Goyal
|
r37333 | $ cat >> printnum.py <<EOF | ||
> from __future__ import print_function | ||||
> for i in range(20000 // 100): | ||||
> print('x' * 100) | ||||
> EOF | ||||
$ $PYTHON printnum.py >> overflow.list | ||||
Yuya Nishihara
|
r21191 | $ echo fenugreek >> overflow.list | ||
Yuya Nishihara
|
r38281 | $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx' | ||
Yuya Nishihara
|
r21191 | f fennel fennel exact | ||
f fenugreek fenugreek exact | ||||
$ cd .. | ||||