test-walk.t
652 lines
| 22.3 KiB
| text/troff
|
Tads3Lexer
/ tests / test-walk.t
|
r13956 | $ hg init t | ||
|
r11799 | $ cd t | ||
$ mkdir -p beans | ||||
$ for b in kidney navy turtle borlotti black pinto; do | ||||
> echo $b > beans/$b | ||||
|
r19873 | > done | ||
|
r11799 | $ mkdir -p mammals/Procyonidae | ||
$ for m in cacomistle coatimundi raccoon; do | ||||
> echo $m > mammals/Procyonidae/$m | ||||
|
r19873 | > done | ||
|
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 | ||||
|
r12156 | $ hg commit -m "commit #0" | ||
|
r11799 | |||
|
r38281 | $ hg debugwalk -v | ||
|
r38282 | * matcher: | ||
<alwaysmatcher> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -I. | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:)'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v | ||
|
r38282 | * matcher: | ||
<alwaysmatcher> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -X ../beans | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<alwaysmatcher>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -I '*k' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals\\/[^/]*k(?:/|$))'> | ||||
|
r11799 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -I 'glob:*k' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals\\/[^/]*k(?:/|$))'> | ||||
|
r11799 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -I 'relglob:*k' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'> | ||||
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v -I 'relglob:*k' . | ||
|
r38282 | * matcher: | ||
<intersectionmatcher m1= | ||||
<patternmatcher patterns='(?:mammals(?:/|$))'>, m2= | ||||
<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'>> | ||||
|
r11799 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -I 're:.*k$' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:.*k$)'> | ||||
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v -I 'relre:.*k$' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:.*.*k$)'> | ||||
|
r11799 | f beans/black ../beans/black | ||
f fenugreek ../fenugreek | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v -I 'path:beans' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -I 'relpath:detour/../../beans' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
|
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 | ||||
|
r31012 | |||
|
r38281 | $ hg debugwalk -v 'rootfilesin:' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]+$)'> | ||||
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:[^/]+$)'> | ||||
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
|
r38281 | $ hg debugwalk -v 'rootfilesin:.' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]+$)'> | ||||
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:.' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:[^/]+$)'> | ||||
|
r31012 | f fennel ../fennel | ||
f fenugreek ../fenugreek | ||||
f fiddlehead ../fiddlehead | ||||
|
r38281 | $ hg debugwalk -v -X 'rootfilesin:' | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<alwaysmatcher>, m2= | ||||
<includematcher includes='(?:[^/]+$)'>> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v 'rootfilesin:fennel' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fennel/[^/]+$)'> | ||||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:fennel' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:fennel/[^/]+$)'> | ||||
|
r38281 | $ hg debugwalk -v 'rootfilesin:skunk' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:skunk/[^/]+$)'> | ||||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:skunk' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:skunk/[^/]+$)'> | ||||
|
r38281 | $ hg debugwalk -v 'rootfilesin:beans' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans/[^/]+$)'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:beans' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans/[^/]+$)'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v 'rootfilesin:mammals' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals/[^/]+$)'> | ||||
|
r31012 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:mammals' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals/[^/]+$)'> | ||||
|
r31012 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v 'rootfilesin:mammals/' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals/[^/]+$)'> | ||||
|
r31012 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -I 'rootfilesin:mammals/' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals/[^/]+$)'> | ||||
|
r31012 | f mammals/skunk skunk | ||
|
r38281 | $ hg debugwalk -v -X 'rootfilesin:mammals' | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<alwaysmatcher>, m2= | ||||
<includematcher includes='(?:mammals/[^/]+$)'>> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v . | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v -I. | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:mammals(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v Procyonidae | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/Procyonidae(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
$ cd Procyonidae | ||||
|
r38281 | $ hg debugwalk -v . | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/Procyonidae(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle cacomistle | ||
f mammals/Procyonidae/coatimundi coatimundi | ||||
f mammals/Procyonidae/raccoon raccoon | ||||
|
r38281 | $ hg debugwalk -v .. | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle cacomistle | ||
f mammals/Procyonidae/coatimundi coatimundi | ||||
f mammals/Procyonidae/raccoon raccoon | ||||
f mammals/skunk ../skunk | ||||
$ cd .. | ||||
|
r38281 | $ hg debugwalk -v ../beans | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v . | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon Procyonidae/raccoon | ||||
f mammals/skunk skunk | ||||
|
r38281 | $ hg debugwalk -v .hg | ||
|
r35394 | abort: path 'mammals/.hg' is inside nested repo 'mammals' | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v ../.hg | ||
|
r18682 | abort: path contains illegal component: .hg | ||
|
r12316 | [255] | ||
|
r11799 | $ cd .. | ||
|
r38281 | $ hg debugwalk -v -Ibeans | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:beans(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -I '{*,{b,m}*/*}k' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:(?:[^/]*|(?:b|m)[^/]*\\/[^/]*)k(?:/|$))'> | ||||
|
r11799 | f beans/black beans/black | ||
f fenugreek fenugreek | ||||
f mammals/skunk mammals/skunk | ||||
|
r38281 | $ hg debugwalk -v -Ibeans mammals | ||
|
r38282 | * matcher: | ||
<intersectionmatcher m1= | ||||
<patternmatcher patterns='(?:mammals(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v -Inon-existent | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:non\\-existent(?:/|$))'> | ||||
|
r38281 | $ hg debugwalk -v -Inon-existent -Ibeans/black | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:non\\-existent(?:/|$)|beans\\/black(?:/|$))'> | ||||
|
r25217 | f beans/black beans/black | ||
|
r38281 | $ hg debugwalk -v -Ibeans beans/black | ||
|
r38282 | * matcher: | ||
<intersectionmatcher m1= | ||||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r25217 | f beans/black beans/black exact | ||
|
r38281 | $ hg debugwalk -v -Ibeans/black beans | ||
|
r38282 | * matcher: | ||
<intersectionmatcher m1= | ||||
<patternmatcher patterns='(?:beans(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
|
r25217 | f beans/black beans/black | ||
|
r38281 | $ hg debugwalk -v -Xbeans/black beans | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:beans(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -Xbeans/black -Ibeans | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<includematcher includes='(?:beans(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v -Xbeans/black beans/black | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v -Xbeans/black -Ibeans/black | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v -Xbeans beans/black | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v -Xbeans -Ibeans/black | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v 'glob:mammals/../beans/b*' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/b[^/]*$)'> | ||||
|
r11799 | f beans/black beans/black | ||
f beans/borlotti beans/borlotti | ||||
|
r38281 | $ hg debugwalk -v '-X*/Procyonidae' mammals | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:mammals(?:/|$))'>, m2= | ||||
<includematcher includes='(?:[^/]*\\/Procyonidae(?:/|$))'>> | ||||
|
r11799 | f mammals/skunk mammals/skunk | ||
|
r38281 | $ hg debugwalk -v path:mammals | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v .. | ||
|
r35394 | abort: .. not under root '$TESTTMP/t' | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v beans/../.. | ||
|
r35394 | abort: beans/../.. not under root '$TESTTMP/t' | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v .hg | ||
|
r18682 | abort: path contains illegal component: .hg | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v beans/../.hg | ||
|
r18682 | abort: path contains illegal component: .hg | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v beans/../.hg/data | ||
|
r35394 | abort: path contains illegal component: .hg/data | ||
|
r12316 | [255] | ||
|
r38281 | $ hg debugwalk -v beans/.hg | ||
|
r35394 | abort: path 'beans/.hg' is inside nested repo 'beans' | ||
|
r12316 | [255] | ||
|
r11799 | |||
|
r35677 | Test explicit paths and excludes: | ||
|
r38281 | $ hg debugwalk -v fennel -X fennel | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:fennel(?:/|$))'>, m2= | ||||
<includematcher includes='(?:fennel(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v fennel -X 'f*' | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:fennel(?:/|$))'>, m2= | ||||
<includematcher includes='(?:f[^/]*(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v beans/black -X 'path:beans' | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r38281 | $ hg debugwalk -v -I 'path:beans/black' -X 'path:beans' | ||
|
r38282 | * matcher: | ||
<differencematcher m1= | ||||
<includematcher includes='(?:beans\\/black(?:/|$))'>, m2= | ||||
<includematcher includes='(?:beans(?:/|$))'>> | ||||
|
r35677 | |||
|
r11903 | Test absolute paths: | ||
|
r38281 | $ hg debugwalk -v `pwd`/beans | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v `pwd`/.. | ||
|
r35394 | abort: $TESTTMP/t/.. not under root '$TESTTMP/t' | ||
|
r12316 | [255] | ||
|
r11903 | |||
Test patterns: | ||||
|
r11799 | |||
|
r38281 | $ hg debugwalk -v glob:\* | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]*$)'> | ||||
|
r11799 | f fennel fennel | ||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
|
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' | ||||
|
r38281 | $ hg debugwalk -v glob:\* | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:[^/]*$)'> | ||||
|
r16983 | f fennel fennel | ||
f fenugreek fenugreek | ||||
f fiddlehead fiddlehead | ||||
|
r11799 | f glob:glob glob:glob | ||
|
r38281 | $ hg debugwalk -v glob:glob | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob$)'> | ||||
|
r35230 | glob: $ENOENT$ | ||
|
r38281 | $ hg debugwalk -v glob:glob:glob | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob\\:glob$)'> | ||||
|
r16984 | f glob:glob glob:glob exact | ||
|
r38281 | $ hg debugwalk -v path:glob:glob | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:glob\\:glob(?:/|$))'> | ||||
|
r16984 | f glob:glob glob:glob exact | ||
|
r16983 | $ rm glob:glob | ||
$ hg addremove | ||||
removing glob:glob | ||||
#endif | ||||
|
r11903 | |||
|
r38281 | $ hg debugwalk -v 'glob:**e' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:.*e$)'> | ||||
|
r11799 | f beans/turtle beans/turtle | ||
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||||
|
r11903 | |||
|
r38281 | $ hg debugwalk -v 're:.*[kb]$' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:.*[kb]$)'> | ||||
|
r11799 | f beans/black beans/black | ||
f fenugreek fenugreek | ||||
f mammals/skunk mammals/skunk | ||||
|
r11903 | |||
|
r38281 | $ hg debugwalk -v path:beans/black | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'> | ||||
|
r11799 | f beans/black beans/black exact | ||
|
r38281 | $ hg debugwalk -v path:beans//black | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans\\/black(?:/|$))'> | ||||
|
r11799 | f beans/black beans/black exact | ||
|
r11903 | |||
|
r38281 | $ hg debugwalk -v relglob:Procyonidae | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae$)'> | ||||
|
r38281 | $ hg debugwalk -v 'relglob:Procyonidae/**' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae\\/.*$)'> | ||||
|
r11799 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | ||
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | ||||
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | ||||
|
r38281 | $ hg debugwalk -v 'relglob:Procyonidae/**' fennel | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:(?:|.*/)Procyonidae\\/.*$|fennel(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v beans 'glob:beans/*' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:beans(?:/|$)|beans\\/[^/]*$)'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v 'glob:mamm**' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mamm.*$)'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v 'glob:mamm**' fennel | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mamm.*$|fennel(?:/|$))'> | ||||
|
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 | ||||
|
r38281 | $ hg debugwalk -v 'glob:j*' | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:j[^/]*$)'> | ||||
|
r38281 | $ hg debugwalk -v NOEXIST | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:NOEXIST(?:/|$))'> | ||||
|
r15521 | NOEXIST: * (glob) | ||
|
r11799 | |||
|
r16972 | #if fifo | ||
|
r11799 | $ mkfifo fifo | ||
|
r38281 | $ hg debugwalk -v fifo | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fifo(?:/|$))'> | ||||
|
r11799 | fifo: unsupported file type (type is fifo) | ||
|
r16972 | #endif | ||
|
r11799 | |||
$ rm fenugreek | ||||
|
r38281 | $ hg debugwalk -v fenugreek | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fenugreek(?:/|$))'> | ||||
|
r11799 | f fenugreek fenugreek exact | ||
$ hg rm fenugreek | ||||
|
r38281 | $ hg debugwalk -v fenugreek | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:fenugreek(?:/|$))'> | ||||
|
r11799 | f fenugreek fenugreek exact | ||
$ touch new | ||||
|
r38281 | $ hg debugwalk -v new | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:new(?:/|$))'> | ||||
|
r11799 | f new new exact | ||
$ mkdir ignored | ||||
$ touch ignored/file | ||||
$ echo '^ignored$' > .hgignore | ||||
|
r38281 | $ hg debugwalk -v ignored | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:ignored(?:/|$))'> | ||||
|
r38281 | $ hg debugwalk -v ignored/file | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:ignored\\/file(?:/|$))'> | ||||
|
r11799 | f ignored/file ignored/file exact | ||
|
r14248 | Test listfile and listfile0 | ||
|
r36032 | $ $PYTHON -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')" | ||
|
r38281 | $ hg debugwalk -v -I 'listfile0:listfile0' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$))'> | ||||
|
r14248 | f fenugreek fenugreek | ||
f new new | ||||
|
r36032 | $ $PYTHON -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')" | ||
|
r38281 | $ hg debugwalk -v -I 'listfile:listfile' | ||
|
r38282 | * matcher: | ||
<includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$)|mammals\\/skunk(?:/|$))'> | ||||
|
r14248 | f fenugreek fenugreek | ||
f mammals/skunk mammals/skunk | ||||
f new new | ||||
|
r11799 | $ cd .. | ||
|
r38281 | $ hg debugwalk -v -R t t/mammals/skunk | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
|
r11799 | f mammals/skunk t/mammals/skunk exact | ||
$ mkdir t2 | ||||
$ cd t2 | ||||
|
r38281 | $ hg debugwalk -v -R ../t ../t/mammals/skunk | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
|
r11799 | f mammals/skunk ../t/mammals/skunk exact | ||
|
r38281 | $ hg debugwalk -v --cwd ../t mammals/skunk | ||
|
r38282 | * matcher: | ||
<patternmatcher patterns='(?:mammals\\/skunk(?:/|$))'> | ||||
|
r11799 | f mammals/skunk mammals/skunk exact | ||
|
r16913 | |||
$ cd .. | ||||
|
r21191 | |||
Test split patterns on overflow | ||||
$ cd t | ||||
$ echo fennel > overflow.list | ||||
|
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 | ||||
|
r21191 | $ echo fenugreek >> overflow.list | ||
|
r38281 | $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx' | ||
|
r21191 | f fennel fennel exact | ||
f fenugreek fenugreek exact | ||||
$ cd .. | ||||