##// END OF EJS Templates
wireprotov2: define and implement "manifestdata" command...
wireprotov2: define and implement "manifestdata" command The added command can be used for obtaining manifest data. Given a manifest path and set of manifest nodes, data about manifests can be retrieved. Unlike changeset data, we wish to emit deltas to describe manifest revisions. So the command uses the relatively new API for building delta requests and emitting them. The code calls into deltaparent(), which I'm not very keen of. There's still work to be done in delta generation land so implementation details of storage (e.g. exactly one delta is stored/available) don't creep into higher levels. But we can worry about this later (there is already a TODO on imanifestorage tracking this). On the subject of parent deltas, the server assumes parent revisions exist on the receiving end. This is obviously wrong for shallow clone. I've added TODOs to add a mechanism to the command to allow clients to specify desired behavior. This shouldn't be too difficult to implement. Another big change is that the client must explicitly request manifest nodes to retrieve. This is a major departure from "getbundle," where the server derives relevant manifests as it iterates changesets and sends them automatically. As implemented, the client must transmit each requested node to the server. At 20 bytes per node, we're looking at 2 MB per 100,000 nodes. Plus wire encoding overhead. This isn't ideal for clients with limited upload bandwidth. I plan to address this in the future by allowing alternate mechanisms for defining the revisions to retrieve. One idea is to define a range of changeset revisions whose manifest revisions to retrieve (similar to how "changesetdata" works). We almost certainly want an API to look up an individual manifest by node. And that's where I've chosen to start with the implementation. Again, a theme of this early exchangev2 work is I want to start by building primitives for accessing raw repository data first and see how far we can get with those before we need more complexity. Differential Revision: https://phab.mercurial-scm.org/D4488

File last commit:

r38494:67dc32d4 @56 default
r39673:c7a7c7e8 default
Show More
test-walk.t
652 lines | 22.2 KiB | text/troff | Tads3Lexer
Martin Geisler
tests: remove redundant mkdir...
r13956 $ hg init t
Nicolas Dumazet
tests: unify test-walk
r11799 $ cd t
$ mkdir -p beans
$ for b in kidney navy turtle borlotti black pinto; do
> echo $b > beans/$b
Mads Kiilerich
check-code: check that '>' is used for continued lines...
r19873 > done
Nicolas Dumazet
tests: unify test-walk
r11799 $ mkdir -p mammals/Procyonidae
$ for m in cacomistle coatimundi raccoon; do
> echo $m > mammals/Procyonidae/$m
Mads Kiilerich
check-code: check that '>' is used for continued lines...
r19873 > done
Nicolas Dumazet
tests: unify test-walk
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
tests: remove unneeded -d flags...
r12156 $ hg commit -m "commit #0"
Nicolas Dumazet
tests: unify test-walk
r11799
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<alwaysmatcher>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I.
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:)'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<alwaysmatcher>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -X ../beans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<alwaysmatcher>,
m2=<includematcher includes='(?:beans(?:/|$))'>>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I '*k'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <includematcher includes='(?:mammals/[^/]*k(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'glob:*k'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <includematcher includes='(?:mammals/[^/]*k(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'relglob:*k'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black ../beans/black
f fenugreek ../fenugreek
f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'relglob:*k' .
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <intersectionmatcher
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>,
m2=<includematcher includes='(?:(?:|.*/)[^/]*k(?:/|$))'>>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 're:.*k$'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:.*k$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black ../beans/black
f fenugreek ../fenugreek
f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'relre:.*k$'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:.*.*k$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black ../beans/black
f fenugreek ../fenugreek
f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'path:beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:beans(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'relpath:detour/../../beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:beans(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
match: adding support for matching files inside a directory...
r31012
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:.'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:.'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f fennel ../fennel
f fenugreek ../fenugreek
f fiddlehead ../fiddlehead
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -X 'rootfilesin:'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<alwaysmatcher>,
m2=<includematcher includes='(?:[^/]+$)'>>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:fennel'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:fennel/[^/]+$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:fennel'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:fennel/[^/]+$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:skunk'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:skunk/[^/]+$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:skunk'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:skunk/[^/]+$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:beans/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:beans/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:mammals'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:mammals'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:mammals/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'rootfilesin:mammals/'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'rootfilesin:mammals/'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:mammals/[^/]+$)'>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
r31012 f mammals/skunk skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -X 'rootfilesin:mammals'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<alwaysmatcher>,
m2=<includematcher includes='(?:mammals/[^/]+$)'>>
Rodrigo Damazio Bovendorp
match: adding support for matching files inside a directory...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v .
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I.
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:mammals(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v Procyonidae
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:mammals/Procyonidae(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
f mammals/Procyonidae/raccoon Procyonidae/raccoon
$ cd Procyonidae
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v .
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:mammals/Procyonidae(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/Procyonidae/cacomistle cacomistle
f mammals/Procyonidae/coatimundi coatimundi
f mammals/Procyonidae/raccoon raccoon
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ..
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/Procyonidae/cacomistle cacomistle
f mammals/Procyonidae/coatimundi coatimundi
f mammals/Procyonidae/raccoon raccoon
f mammals/skunk ../skunk
$ cd ..
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ../beans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:beans(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v .
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v .hg
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: path 'mammals/.hg' is inside nested repo 'mammals'
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ../.hg
Simon Heimberg
tests: remove glob from output lines containing no glob character
r18682 abort: path contains illegal component: .hg
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Nicolas Dumazet
tests: unify test-walk
r11799 $ cd ..
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Ibeans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:beans(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I '{*,{b,m}*/*}k'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <includematcher includes='(?:(?:[^/]*|(?:b|m)[^/]*/[^/]*)k(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black beans/black
f fenugreek fenugreek
f mammals/skunk mammals/skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Ibeans mammals
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <intersectionmatcher
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>,
m2=<includematcher includes='(?:beans(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Inon-existent
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:non\\-existent(?:/|$))'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Inon-existent -Ibeans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <includematcher includes='(?:non\\-existent(?:/|$)|beans/black(?:/|$))'>
Martin von Zweigbergk
test-walk: add more tests for -I/-X...
r25217 f beans/black beans/black
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Ibeans beans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <intersectionmatcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<patternmatcher patterns='(?:beans/black(?:/|$))'>,
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 m2=<includematcher includes='(?:beans(?:/|$))'>>
Martin von Zweigbergk
test-walk: add more tests for -I/-X...
r25217 f beans/black beans/black exact
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Ibeans/black beans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <intersectionmatcher
m1=<patternmatcher patterns='(?:beans(?:/|$))'>,
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m2=<includematcher includes='(?:beans/black(?:/|$))'>>
Martin von Zweigbergk
test-walk: add more tests for -I/-X...
r25217 f beans/black beans/black
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans/black beans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<patternmatcher patterns='(?:beans(?:/|$))'>,
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m2=<includematcher includes='(?:beans/black(?:/|$))'>>
Martin von Zweigbergk
test-walk: add more tests for -I/-X...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans/black -Ibeans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<includematcher includes='(?:beans(?:/|$))'>,
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m2=<includematcher includes='(?:beans/black(?:/|$))'>>
Martin von Zweigbergk
test-walk: add more tests for -I/-X...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans/black beans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<patternmatcher patterns='(?:beans/black(?:/|$))'>,
m2=<includematcher includes='(?:beans/black(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans/black -Ibeans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<includematcher includes='(?:beans/black(?:/|$))'>,
m2=<includematcher includes='(?:beans/black(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans beans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<patternmatcher patterns='(?:beans/black(?:/|$))'>,
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 m2=<includematcher includes='(?:beans(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -Xbeans -Ibeans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<includematcher includes='(?:beans/black(?:/|$))'>,
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 m2=<includematcher includes='(?:beans(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'glob:mammals/../beans/b*'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:beans/b[^/]*$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black beans/black
f beans/borlotti beans/borlotti
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v '-X*/Procyonidae' mammals
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<patternmatcher patterns='(?:mammals(?:/|$))'>,
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m2=<includematcher includes='(?:[^/]*/Procyonidae(?:/|$))'>>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk mammals/skunk
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v path:mammals
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mammals(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ..
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: .. not under root '$TESTTMP/t'
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans/../..
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: beans/../.. not under root '$TESTTMP/t'
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v .hg
Simon Heimberg
tests: remove glob from output lines containing no glob character
r18682 abort: path contains illegal component: .hg
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans/../.hg
Simon Heimberg
tests: remove glob from output lines containing no glob character
r18682 abort: path contains illegal component: .hg
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans/../.hg/data
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: path contains illegal component: .hg/data
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans/.hg
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: path 'beans/.hg' is inside nested repo 'beans'
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Nicolas Dumazet
tests: unify test-walk
r11799
Yuya Nishihara
match: do not weirdly include explicit files excluded by -X option...
r35677 Test explicit paths and excludes:
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v fennel -X fennel
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<patternmatcher patterns='(?:fennel(?:/|$))'>,
m2=<includematcher includes='(?:fennel(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v fennel -X 'f*'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
m1=<patternmatcher patterns='(?:fennel(?:/|$))'>,
m2=<includematcher includes='(?:f[^/]*(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans/black -X 'path:beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<patternmatcher patterns='(?:beans/black(?:/|$))'>,
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 m2=<includematcher includes='(?:beans(?:/|$))'>>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'path:beans/black' -X 'path:beans'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 <differencematcher
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 m1=<includematcher includes='(?:beans/black(?:/|$))'>,
Yuya Nishihara
stringutil: fix prettyrepr() to not orphan foo=<...> line
r38283 m2=<includematcher includes='(?:beans(?:/|$))'>>
Yuya Nishihara
match: do not weirdly include explicit files excluded by -X option...
r35677
Matt Mackall
test-walk: enable absolute path tests
r11903 Test absolute paths:
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v `pwd`/beans
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:beans(?:/|$))'>
Matt Mackall
test-walk: enable absolute path tests
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v `pwd`/..
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 abort: $TESTTMP/t/.. not under root '$TESTTMP/t'
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Matt Mackall
test-walk: enable absolute path tests
r11903
Test patterns:
Nicolas Dumazet
tests: unify test-walk
r11799
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v glob:\*
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:[^/]*$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f fennel fennel
f fenugreek fenugreek
f fiddlehead fiddlehead
Mads Kiilerich
tests: move tests in test-walk.t using ':' in filenames to conditional section...
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v glob:\*
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:[^/]*$)'>
Mads Kiilerich
tests: move tests in test-walk.t using ':' in filenames to conditional section...
r16983 f fennel fennel
f fenugreek fenugreek
f fiddlehead fiddlehead
Nicolas Dumazet
tests: unify test-walk
r11799 f glob:glob glob:glob
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v glob:glob
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:glob$)'>
Matt Harbison
tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages...
r35230 glob: $ENOENT$
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v glob:glob:glob
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:glob:glob$)'>
Mads Kiilerich
tests: better testing of 'glob:glob' in test-walk.t
r16984 f glob:glob glob:glob exact
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v path:glob:glob
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:glob:glob(?:/|$))'>
Mads Kiilerich
tests: better testing of 'glob:glob' in test-walk.t
r16984 f glob:glob glob:glob exact
Mads Kiilerich
tests: move tests in test-walk.t using ':' in filenames to conditional section...
r16983 $ rm glob:glob
$ hg addremove
removing glob:glob
#endif
Matt Mackall
test-walk: enable absolute path tests
r11903
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'glob:**e'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:.*e$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/turtle beans/turtle
f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
Matt Mackall
test-walk: enable absolute path tests
r11903
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 're:.*[kb]$'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:.*[kb]$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black beans/black
f fenugreek fenugreek
f mammals/skunk mammals/skunk
Matt Mackall
test-walk: enable absolute path tests
r11903
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v path:beans/black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:beans/black(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black beans/black exact
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v path:beans//black
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:beans/black(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f beans/black beans/black exact
Matt Mackall
test-walk: enable absolute path tests
r11903
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v relglob:Procyonidae
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:(?:|.*/)Procyonidae$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'relglob:Procyonidae/**'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:(?:|.*/)Procyonidae/.*$)'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'relglob:Procyonidae/**' fennel
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:(?:|.*/)Procyonidae/.*$|fennel(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v beans 'glob:beans/*'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:beans(?:/|$)|beans/[^/]*$)'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'glob:mamm**'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mamm.*$)'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'glob:mamm**' fennel
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:mamm.*$|fennel(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
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
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v 'glob:j*'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:j[^/]*$)'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v NOEXIST
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:NOEXIST(?:/|$))'>
Mads Kiilerich
tests: hide 'No such file or directory' messages...
r15521 NOEXIST: * (glob)
Nicolas Dumazet
tests: unify test-walk
r11799
Mads Kiilerich
tests: add some missing #if's / hghave requirements...
r16972 #if fifo
Nicolas Dumazet
tests: unify test-walk
r11799 $ mkfifo fifo
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v fifo
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:fifo(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 fifo: unsupported file type (type is fifo)
Mads Kiilerich
tests: add some missing #if's / hghave requirements...
r16972 #endif
Nicolas Dumazet
tests: unify test-walk
r11799
$ rm fenugreek
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v fenugreek
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:fenugreek(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f fenugreek fenugreek exact
$ hg rm fenugreek
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v fenugreek
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:fenugreek(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f fenugreek fenugreek exact
$ touch new
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v new
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:new(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f new new exact
$ mkdir ignored
$ touch ignored/file
$ echo '^ignored$' > .hgignore
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ignored
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<patternmatcher patterns='(?:ignored(?:/|$))'>
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v ignored/file
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:ignored/file(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f ignored/file ignored/file exact
Patrick Mezard
match: make 'listfile:' split on LF and CRLF...
r14248 Test listfile and listfile0
Pulkit Goyal
py3: replace file() with open() in test-walk.t...
r36032 $ $PYTHON -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')"
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'listfile0:listfile0'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
<includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$))'>
Patrick Mezard
match: make 'listfile:' split on LF and CRLF...
r14248 f fenugreek fenugreek
f new new
Pulkit Goyal
py3: replace file() with open() in test-walk.t...
r36032 $ $PYTHON -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')"
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -I 'listfile:listfile'
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <includematcher includes='(?:fenugreek(?:/|$)|new(?:/|$)|mammals/skunk(?:/|$))'>
Patrick Mezard
match: make 'listfile:' split on LF and CRLF...
r14248 f fenugreek fenugreek
f mammals/skunk mammals/skunk
f new new
Nicolas Dumazet
tests: unify test-walk
r11799 $ cd ..
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -R t t/mammals/skunk
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:mammals/skunk(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk t/mammals/skunk exact
$ mkdir t2
$ cd t2
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v -R ../t ../t/mammals/skunk
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:mammals/skunk(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk ../t/mammals/skunk exact
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk -v --cwd ../t mammals/skunk
Yuya Nishihara
debugwalk: pretty-print nested matcher...
r38282 * matcher:
Augie Fackler
cleanup: migrate from re.escape to stringutil.reescape...
r38494 <patternmatcher patterns='(?:mammals/skunk(?:/|$))'>
Nicolas Dumazet
tests: unify test-walk
r11799 f mammals/skunk mammals/skunk exact
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913
$ cd ..
Yuya Nishihara
match: fix NameError 'pat' on overflow of regex pattern length...
r21191
Test split patterns on overflow
$ cd t
$ echo fennel > overflow.list
Pulkit Goyal
py3: use print as a function in tests/test-walk.t...
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
match: fix NameError 'pat' on overflow of regex pattern length...
r21191 $ echo fenugreek >> overflow.list
Yuya Nishihara
debugwalk: show matcher output only if -v/--verbose...
r38281 $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx'
Yuya Nishihara
match: fix NameError 'pat' on overflow of regex pattern length...
r21191 f fennel fennel exact
f fenugreek fenugreek exact
$ cd ..