Mercurial > hg
annotate tests/test-walk.t @ 42312:2b77183ac477
bookmarks: use vfs.tryread() instead of reimplementing it
Differential Revision: https://phab.mercurial-scm.org/D6383
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 15 May 2019 10:19:36 -0700 |
parents | 3984409e144b |
children | 72890d8f9860 |
rev | line source |
---|---|
13956
ffb5c09ba822
tests: remove redundant mkdir
Martin Geisler <mg@lazybytes.net>
parents:
13910
diff
changeset
|
1 $ hg init t |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
2 $ cd t |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
3 $ mkdir -p beans |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
4 $ for b in kidney navy turtle borlotti black pinto; do |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
5 > echo $b > beans/$b |
19873
b3de50b0c7aa
check-code: check that '>' is used for continued lines
Mads Kiilerich <madski@unity3d.com>
parents:
18682
diff
changeset
|
6 > done |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
7 $ mkdir -p mammals/Procyonidae |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
8 $ for m in cacomistle coatimundi raccoon; do |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
9 > echo $m > mammals/Procyonidae/$m |
19873
b3de50b0c7aa
check-code: check that '>' is used for continued lines
Mads Kiilerich <madski@unity3d.com>
parents:
18682
diff
changeset
|
10 > done |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
11 $ echo skunk > mammals/skunk |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
12 $ echo fennel > fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
13 $ echo fenugreek > fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
14 $ echo fiddlehead > fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
15 $ hg addremove |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
16 adding beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
17 adding beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
18 adding beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
19 adding beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
20 adding beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
21 adding beans/turtle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
22 adding fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
23 adding fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
24 adding fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
25 adding mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
26 adding mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
27 adding mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
28 adding mammals/skunk |
12156
4c94b6d0fb1c
tests: remove unneeded -d flags
Martin Geisler <mg@lazybytes.net>
parents:
11903
diff
changeset
|
29 $ hg commit -m "commit #0" |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
30 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
31 $ hg debugwalk -v |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
32 * matcher: |
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
33 <alwaysmatcher> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
34 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
35 f beans/borlotti beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
36 f beans/kidney beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
37 f beans/navy beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
38 f beans/pinto beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
39 f beans/turtle beans/turtle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
40 f fennel fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
41 f fenugreek fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
42 f fiddlehead fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
43 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
44 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
45 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
46 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
47 $ hg debugwalk -v -I. |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
48 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
49 <includematcher includes=''> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
50 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
51 f beans/borlotti beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
52 f beans/kidney beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
53 f beans/navy beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
54 f beans/pinto beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
55 f beans/turtle beans/turtle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
56 f fennel fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
57 f fenugreek fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
58 f fiddlehead fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
59 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
60 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
61 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
62 f mammals/skunk mammals/skunk |
889
0a06d9d373c3
Add unit tests for walk code.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
63 |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
64 $ cd mammals |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
65 $ hg debugwalk -v |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
66 * matcher: |
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
67 <alwaysmatcher> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
68 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
69 f beans/borlotti ../beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
70 f beans/kidney ../beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
71 f beans/navy ../beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
72 f beans/pinto ../beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
73 f beans/turtle ../beans/turtle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
74 f fennel ../fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
75 f fenugreek ../fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
76 f fiddlehead ../fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
77 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
78 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
79 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
80 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
81 $ hg debugwalk -v -X ../beans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
82 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
83 <differencematcher |
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
84 m1=<alwaysmatcher>, |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
85 m2=<includematcher includes='beans(?:/|$)'>> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
86 f fennel ../fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
87 f fenugreek ../fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
88 f fiddlehead ../fiddlehead |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
89 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
90 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
91 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
92 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
93 $ hg debugwalk -v -I '*k' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
94 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
95 <includematcher includes='mammals/[^/]*k(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
96 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
97 $ hg debugwalk -v -I 'glob:*k' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
98 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
99 <includematcher includes='mammals/[^/]*k(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
100 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
101 $ hg debugwalk -v -I 'relglob:*k' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
102 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
103 <includematcher includes='(?:|.*/)[^/]*k(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
104 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
105 f fenugreek ../fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
106 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
107 $ hg debugwalk -v -I 'relglob:*k' . |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
108 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
109 <intersectionmatcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
110 m1=<patternmatcher patterns='mammals(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
111 m2=<includematcher includes='(?:|.*/)[^/]*k(?:/|$)'>> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
112 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
113 $ hg debugwalk -v -I 're:.*k$' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
114 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
115 <includematcher includes='.*k$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
116 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
117 f fenugreek ../fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
118 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
119 $ hg debugwalk -v -I 'relre:.*k$' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
120 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
121 <includematcher includes='.*.*k$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
122 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
123 f fenugreek ../fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
124 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
125 $ hg debugwalk -v -I 'path:beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
126 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
127 <includematcher includes='beans(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
128 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
129 f beans/borlotti ../beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
130 f beans/kidney ../beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
131 f beans/navy ../beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
132 f beans/pinto ../beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
133 f beans/turtle ../beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
134 $ hg debugwalk -v -I 'relpath:detour/../../beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
135 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
136 <includematcher includes='beans(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
137 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
138 f beans/borlotti ../beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
139 f beans/kidney ../beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
140 f beans/navy ../beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
141 f beans/pinto ../beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
142 f beans/turtle ../beans/turtle |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
143 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
144 $ hg debugwalk -v 'rootfilesin:' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
145 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
146 <patternmatcher patterns="rootfilesin: ['.']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
147 f fennel ../fennel |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
148 f fenugreek ../fenugreek |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
149 f fiddlehead ../fiddlehead |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
150 $ hg debugwalk -v -I 'rootfilesin:' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
151 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
152 <includematcher includes="rootfilesin: ['.']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
153 f fennel ../fennel |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
154 f fenugreek ../fenugreek |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
155 f fiddlehead ../fiddlehead |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
156 $ hg debugwalk -v 'rootfilesin:.' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
157 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
158 <patternmatcher patterns="rootfilesin: ['.']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
159 f fennel ../fennel |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
160 f fenugreek ../fenugreek |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
161 f fiddlehead ../fiddlehead |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
162 $ hg debugwalk -v -I 'rootfilesin:.' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
163 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
164 <includematcher includes="rootfilesin: ['.']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
165 f fennel ../fennel |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
166 f fenugreek ../fenugreek |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
167 f fiddlehead ../fiddlehead |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
168 $ hg debugwalk -v -X 'rootfilesin:' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
169 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
170 <differencematcher |
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
171 m1=<alwaysmatcher>, |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
172 m2=<includematcher includes="rootfilesin: ['.']">> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
173 f beans/black ../beans/black |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
174 f beans/borlotti ../beans/borlotti |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
175 f beans/kidney ../beans/kidney |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
176 f beans/navy ../beans/navy |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
177 f beans/pinto ../beans/pinto |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
178 f beans/turtle ../beans/turtle |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
179 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
180 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
181 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
182 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
183 $ hg debugwalk -v 'rootfilesin:fennel' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
184 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
185 <patternmatcher patterns="rootfilesin: ['fennel']"> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
186 $ hg debugwalk -v -I 'rootfilesin:fennel' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
187 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
188 <includematcher includes="rootfilesin: ['fennel']"> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
189 $ hg debugwalk -v 'rootfilesin:skunk' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
190 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
191 <patternmatcher patterns="rootfilesin: ['skunk']"> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
192 $ hg debugwalk -v -I 'rootfilesin:skunk' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
193 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
194 <includematcher includes="rootfilesin: ['skunk']"> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
195 $ hg debugwalk -v 'rootfilesin:beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
196 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
197 <patternmatcher patterns="rootfilesin: ['beans']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
198 f beans/black ../beans/black |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
199 f beans/borlotti ../beans/borlotti |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
200 f beans/kidney ../beans/kidney |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
201 f beans/navy ../beans/navy |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
202 f beans/pinto ../beans/pinto |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
203 f beans/turtle ../beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
204 $ hg debugwalk -v -I 'rootfilesin:beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
205 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
206 <includematcher includes="rootfilesin: ['beans']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
207 f beans/black ../beans/black |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
208 f beans/borlotti ../beans/borlotti |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
209 f beans/kidney ../beans/kidney |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
210 f beans/navy ../beans/navy |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
211 f beans/pinto ../beans/pinto |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
212 f beans/turtle ../beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
213 $ hg debugwalk -v 'rootfilesin:mammals' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
214 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
215 <patternmatcher patterns="rootfilesin: ['mammals']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
216 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
217 $ hg debugwalk -v -I 'rootfilesin:mammals' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
218 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
219 <includematcher includes="rootfilesin: ['mammals']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
220 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
221 $ hg debugwalk -v 'rootfilesin:mammals/' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
222 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
223 <patternmatcher patterns="rootfilesin: ['mammals']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
224 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
225 $ hg debugwalk -v -I 'rootfilesin:mammals/' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
226 * matcher: |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
227 <includematcher includes="rootfilesin: ['mammals']"> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
228 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
229 $ hg debugwalk -v -X 'rootfilesin:mammals' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
230 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
231 <differencematcher |
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
232 m1=<alwaysmatcher>, |
40242
19ed212de2d1
match: optimize matcher when all patterns are of rootfilesin kind
Martin von Zweigbergk <martinvonz@google.com>
parents:
39707
diff
changeset
|
233 m2=<includematcher includes="rootfilesin: ['mammals']">> |
31012
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
234 f beans/black ../beans/black |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
235 f beans/borlotti ../beans/borlotti |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
236 f beans/kidney ../beans/kidney |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
237 f beans/navy ../beans/navy |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
238 f beans/pinto ../beans/pinto |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
239 f beans/turtle ../beans/turtle |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
240 f fennel ../fennel |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
241 f fenugreek ../fenugreek |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
242 f fiddlehead ../fiddlehead |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
243 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
244 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
245 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
88358446da16
match: adding support for matching files inside a directory
Rodrigo Damazio Bovendorp <rdamazio@google.com>
parents:
25217
diff
changeset
|
246 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
247 $ hg debugwalk -v . |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
248 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
249 <patternmatcher patterns='mammals(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
250 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
251 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
252 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
253 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
254 $ hg debugwalk -v -I. |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
255 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
256 <includematcher includes='mammals(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
257 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
258 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
259 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
260 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
261 $ hg debugwalk -v Procyonidae |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
262 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
263 <patternmatcher patterns='mammals/Procyonidae(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
264 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
265 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
266 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
4191
02de0f98ca33
make the output of test-walk more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4190
diff
changeset
|
267 |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
268 $ cd Procyonidae |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
269 $ hg debugwalk -v . |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
270 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
271 <patternmatcher patterns='mammals/Procyonidae(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
272 f mammals/Procyonidae/cacomistle cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
273 f mammals/Procyonidae/coatimundi coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
274 f mammals/Procyonidae/raccoon raccoon |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
275 $ hg debugwalk -v .. |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
276 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
277 <patternmatcher patterns='mammals(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
278 f mammals/Procyonidae/cacomistle cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
279 f mammals/Procyonidae/coatimundi coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
280 f mammals/Procyonidae/raccoon raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
281 f mammals/skunk ../skunk |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
282 $ cd .. |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
283 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
284 $ hg debugwalk -v ../beans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
285 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
286 <patternmatcher patterns='beans(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
287 f beans/black ../beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
288 f beans/borlotti ../beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
289 f beans/kidney ../beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
290 f beans/navy ../beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
291 f beans/pinto ../beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
292 f beans/turtle ../beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
293 $ hg debugwalk -v . |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
294 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
295 <patternmatcher patterns='mammals(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
296 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
297 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
298 f mammals/Procyonidae/raccoon Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
299 f mammals/skunk skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
300 $ hg debugwalk -v .hg |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
301 abort: path 'mammals/.hg' is inside nested repo 'mammals' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
302 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
303 $ hg debugwalk -v ../.hg |
18682
408f2202bd80
tests: remove glob from output lines containing no glob character
Simon Heimberg <simohe@besonet.ch>
parents:
18506
diff
changeset
|
304 abort: path contains illegal component: .hg |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
305 [255] |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
306 $ cd .. |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
307 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
308 $ hg debugwalk -v -Ibeans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
309 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
310 <includematcher includes='beans(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
311 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
312 f beans/borlotti beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
313 f beans/kidney beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
314 f beans/navy beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
315 f beans/pinto beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
316 f beans/turtle beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
317 $ hg debugwalk -v -I '{*,{b,m}*/*}k' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
318 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
319 <includematcher includes='(?:[^/]*|(?:b|m)[^/]*/[^/]*)k(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
320 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
321 f fenugreek fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
322 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
323 $ hg debugwalk -v -Ibeans mammals |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
324 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
325 <intersectionmatcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
326 m1=<patternmatcher patterns='mammals(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
327 m2=<includematcher includes='beans(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
328 $ hg debugwalk -v -Inon-existent |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
329 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
330 <includematcher includes='non\\-existent(?:/|$)'> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
331 $ hg debugwalk -v -Inon-existent -Ibeans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
332 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
333 <includematcher includes='non\\-existent(?:/|$)|beans/black(?:/|$)'> |
25217
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
334 f beans/black beans/black |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
335 $ hg debugwalk -v -Ibeans beans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
336 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
337 <intersectionmatcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
338 m1=<patternmatcher patterns='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
339 m2=<includematcher includes='beans(?:/|$)'>> |
25217
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
340 f beans/black beans/black exact |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
341 $ hg debugwalk -v -Ibeans/black beans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
342 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
343 <intersectionmatcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
344 m1=<patternmatcher patterns='beans(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
345 m2=<includematcher includes='beans/black(?:/|$)'>> |
25217
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
346 f beans/black beans/black |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
347 $ hg debugwalk -v -Xbeans/black beans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
348 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
349 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
350 m1=<patternmatcher patterns='beans(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
351 m2=<includematcher includes='beans/black(?:/|$)'>> |
25217
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
352 f beans/borlotti beans/borlotti |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
353 f beans/kidney beans/kidney |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
354 f beans/navy beans/navy |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
355 f beans/pinto beans/pinto |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
356 f beans/turtle beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
357 $ hg debugwalk -v -Xbeans/black -Ibeans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
358 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
359 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
360 m1=<includematcher includes='beans(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
361 m2=<includematcher includes='beans/black(?:/|$)'>> |
25217
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
362 f beans/borlotti beans/borlotti |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
363 f beans/kidney beans/kidney |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
364 f beans/navy beans/navy |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
365 f beans/pinto beans/pinto |
70e822796ac8
test-walk: add more tests for -I/-X
Martin von Zweigbergk <martinvonz@google.com>
parents:
22947
diff
changeset
|
366 f beans/turtle beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
367 $ hg debugwalk -v -Xbeans/black beans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
368 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
369 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
370 m1=<patternmatcher patterns='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
371 m2=<includematcher includes='beans/black(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
372 $ hg debugwalk -v -Xbeans/black -Ibeans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
373 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
374 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
375 m1=<includematcher includes='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
376 m2=<includematcher includes='beans/black(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
377 $ hg debugwalk -v -Xbeans beans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
378 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
379 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
380 m1=<patternmatcher patterns='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
381 m2=<includematcher includes='beans(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
382 $ hg debugwalk -v -Xbeans -Ibeans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
383 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
384 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
385 m1=<includematcher includes='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
386 m2=<includematcher includes='beans(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
387 $ hg debugwalk -v 'glob:mammals/../beans/b*' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
388 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
389 <patternmatcher patterns='beans/b[^/]*$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
390 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
391 f beans/borlotti beans/borlotti |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
392 $ hg debugwalk -v '-X*/Procyonidae' mammals |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
393 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
394 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
395 m1=<patternmatcher patterns='mammals(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
396 m2=<includematcher includes='[^/]*/Procyonidae(?:/|$)'>> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
397 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
398 $ hg debugwalk -v path:mammals |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
399 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
400 <patternmatcher patterns='mammals(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
401 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
402 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
403 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
404 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
405 $ hg debugwalk -v .. |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
406 abort: .. not under root '$TESTTMP/t' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
407 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
408 $ hg debugwalk -v beans/../.. |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
409 abort: beans/../.. not under root '$TESTTMP/t' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
410 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
411 $ hg debugwalk -v .hg |
18682
408f2202bd80
tests: remove glob from output lines containing no glob character
Simon Heimberg <simohe@besonet.ch>
parents:
18506
diff
changeset
|
412 abort: path contains illegal component: .hg |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
413 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
414 $ hg debugwalk -v beans/../.hg |
18682
408f2202bd80
tests: remove glob from output lines containing no glob character
Simon Heimberg <simohe@besonet.ch>
parents:
18506
diff
changeset
|
415 abort: path contains illegal component: .hg |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
416 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
417 $ hg debugwalk -v beans/../.hg/data |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
418 abort: path contains illegal component: .hg/data |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
419 [255] |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
420 $ hg debugwalk -v beans/.hg |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
421 abort: path 'beans/.hg' is inside nested repo 'beans' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
422 [255] |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
423 |
35659
821d8a5ab4ff
match: do not weirdly include explicit files excluded by -X option
Yuya Nishihara <yuya@tcha.org>
parents:
35393
diff
changeset
|
424 Test explicit paths and excludes: |
821d8a5ab4ff
match: do not weirdly include explicit files excluded by -X option
Yuya Nishihara <yuya@tcha.org>
parents:
35393
diff
changeset
|
425 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
426 $ hg debugwalk -v fennel -X fennel |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
427 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
428 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
429 m1=<patternmatcher patterns='fennel(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
430 m2=<includematcher includes='fennel(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
431 $ hg debugwalk -v fennel -X 'f*' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
432 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
433 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
434 m1=<patternmatcher patterns='fennel(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
435 m2=<includematcher includes='f[^/]*(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
436 $ hg debugwalk -v beans/black -X 'path:beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
437 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
438 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
439 m1=<patternmatcher patterns='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
440 m2=<includematcher includes='beans(?:/|$)'>> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
441 $ hg debugwalk -v -I 'path:beans/black' -X 'path:beans' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
442 * matcher: |
38264
fbb2eddea4d2
stringutil: fix prettyrepr() to not orphan foo=<...> line
Yuya Nishihara <yuya@tcha.org>
parents:
38263
diff
changeset
|
443 <differencematcher |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
444 m1=<includematcher includes='beans/black(?:/|$)'>, |
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
445 m2=<includematcher includes='beans(?:/|$)'>> |
35659
821d8a5ab4ff
match: do not weirdly include explicit files excluded by -X option
Yuya Nishihara <yuya@tcha.org>
parents:
35393
diff
changeset
|
446 |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
447 Test absolute paths: |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
448 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
449 $ hg debugwalk -v `pwd`/beans |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
450 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
451 <patternmatcher patterns='beans(?:/|$)'> |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
452 f beans/black beans/black |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
453 f beans/borlotti beans/borlotti |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
454 f beans/kidney beans/kidney |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
455 f beans/navy beans/navy |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
456 f beans/pinto beans/pinto |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
457 f beans/turtle beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
458 $ hg debugwalk -v `pwd`/.. |
35393
4441705b7111
tests: remove (glob) annotations that were only for '\' matches
Matt Harbison <matt_harbison@yahoo.com>
parents:
35230
diff
changeset
|
459 abort: $TESTTMP/t/.. not under root '$TESTTMP/t' |
12316
4134686b83e1
tests: add exit codes to unified tests
Matt Mackall <mpm@selenic.com>
parents:
12156
diff
changeset
|
460 [255] |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
461 |
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
462 Test patterns: |
6032
b41f0d6a74fc
dirstate: don't walk ignored directories
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4309
diff
changeset
|
463 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
464 $ hg debugwalk -v glob:\* |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
465 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
466 <patternmatcher patterns='[^/]*$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
467 f fennel fennel |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
468 f fenugreek fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
469 f fiddlehead fiddlehead |
16983
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
470 #if eol-in-paths |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
471 $ echo glob:glob > glob:glob |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
472 $ hg addremove |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
473 adding glob:glob |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
474 warning: filename contains ':', which is reserved on Windows: 'glob:glob' |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
475 $ hg debugwalk -v glob:\* |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
476 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
477 <patternmatcher patterns='[^/]*$'> |
16983
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
478 f fennel fennel |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
479 f fenugreek fenugreek |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
480 f fiddlehead fiddlehead |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
481 f glob:glob glob:glob |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
482 $ hg debugwalk -v glob:glob |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
483 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
484 <patternmatcher patterns='glob$'> |
35230
feecfefeba25
tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages
Matt Harbison <matt_harbison@yahoo.com>
parents:
33357
diff
changeset
|
485 glob: $ENOENT$ |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
486 $ hg debugwalk -v glob:glob:glob |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
487 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
488 <patternmatcher patterns='glob:glob$'> |
16984
6932e85c5c95
tests: better testing of 'glob:glob' in test-walk.t
Mads Kiilerich <mads@kiilerich.com>
parents:
16983
diff
changeset
|
489 f glob:glob glob:glob exact |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
490 $ hg debugwalk -v path:glob:glob |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
491 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
492 <patternmatcher patterns='glob:glob(?:/|$)'> |
16984
6932e85c5c95
tests: better testing of 'glob:glob' in test-walk.t
Mads Kiilerich <mads@kiilerich.com>
parents:
16983
diff
changeset
|
493 f glob:glob glob:glob exact |
16983
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
494 $ rm glob:glob |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
495 $ hg addremove |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
496 removing glob:glob |
13cdc10929d1
tests: move tests in test-walk.t using ':' in filenames to conditional section
Mads Kiilerich <mads@kiilerich.com>
parents:
16972
diff
changeset
|
497 #endif |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
498 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
499 $ hg debugwalk -v 'glob:**e' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
500 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
501 <patternmatcher patterns='.*e$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
502 f beans/turtle beans/turtle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
503 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
504 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
505 $ hg debugwalk -v 're:.*[kb]$' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
506 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
507 <patternmatcher patterns='.*[kb]$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
508 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
509 f fenugreek fenugreek |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
510 f mammals/skunk mammals/skunk |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
511 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
512 $ hg debugwalk -v path:beans/black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
513 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
514 <patternmatcher patterns='beans/black(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
515 f beans/black beans/black exact |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
516 $ hg debugwalk -v path:beans//black |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
517 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
518 <patternmatcher patterns='beans/black(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
519 f beans/black beans/black exact |
11903
a4cc9e6f41c3
test-walk: enable absolute path tests
Matt Mackall <mpm@selenic.com>
parents:
11799
diff
changeset
|
520 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
521 $ hg debugwalk -v relglob:Procyonidae |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
522 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
523 <patternmatcher patterns='(?:|.*/)Procyonidae$'> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
524 $ hg debugwalk -v 'relglob:Procyonidae/**' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
525 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
526 <patternmatcher patterns='(?:|.*/)Procyonidae/.*$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
527 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
528 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
529 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
530 $ hg debugwalk -v 'relglob:Procyonidae/**' fennel |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
531 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
532 <patternmatcher patterns='(?:|.*/)Procyonidae/.*$|fennel(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
533 f fennel fennel exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
534 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
535 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
536 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
537 $ hg debugwalk -v beans 'glob:beans/*' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
538 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
539 <patternmatcher patterns='beans(?:/|$)|beans/[^/]*$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
540 f beans/black beans/black |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
541 f beans/borlotti beans/borlotti |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
542 f beans/kidney beans/kidney |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
543 f beans/navy beans/navy |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
544 f beans/pinto beans/pinto |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
545 f beans/turtle beans/turtle |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
546 $ hg debugwalk -v 'glob:mamm**' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
547 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
548 <patternmatcher patterns='mamm.*$'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
549 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
550 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
551 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
552 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
553 $ hg debugwalk -v 'glob:mamm**' fennel |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
554 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
555 <patternmatcher patterns='mamm.*$|fennel(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
556 f fennel fennel exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
557 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
558 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
559 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
560 f mammals/skunk mammals/skunk |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
561 $ hg debugwalk -v 'glob:j*' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
562 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
563 <patternmatcher patterns='j[^/]*$'> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
564 $ hg debugwalk -v NOEXIST |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
565 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
566 <patternmatcher patterns='NOEXIST(?:/|$)'> |
15521
117f9190c1ba
tests: hide 'No such file or directory' messages
Mads Kiilerich <mads@kiilerich.com>
parents:
15444
diff
changeset
|
567 NOEXIST: * (glob) |
6032
b41f0d6a74fc
dirstate: don't walk ignored directories
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4309
diff
changeset
|
568 |
16972
5efe9c6a34fe
tests: add some missing #if's / hghave requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16913
diff
changeset
|
569 #if fifo |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
570 $ mkfifo fifo |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
571 $ hg debugwalk -v fifo |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
572 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
573 <patternmatcher patterns='fifo(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
574 fifo: unsupported file type (type is fifo) |
16972
5efe9c6a34fe
tests: add some missing #if's / hghave requirements
Mads Kiilerich <mads@kiilerich.com>
parents:
16913
diff
changeset
|
575 #endif |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
576 |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
577 $ rm fenugreek |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
578 $ hg debugwalk -v fenugreek |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
579 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
580 <patternmatcher patterns='fenugreek(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
581 f fenugreek fenugreek exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
582 $ hg rm fenugreek |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
583 $ hg debugwalk -v fenugreek |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
584 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
585 <patternmatcher patterns='fenugreek(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
586 f fenugreek fenugreek exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
587 $ touch new |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
588 $ hg debugwalk -v new |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
589 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
590 <patternmatcher patterns='new(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
591 f new new exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
592 |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
593 $ mkdir ignored |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
594 $ touch ignored/file |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
595 $ echo '^ignored$' > .hgignore |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
596 $ hg debugwalk -v ignored |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
597 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
598 <patternmatcher patterns='ignored(?:/|$)'> |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
599 $ hg debugwalk -v ignored/file |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
600 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
601 <patternmatcher patterns='ignored/file(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
602 f ignored/file ignored/file exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
603 |
14248
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
604 Test listfile and listfile0 |
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
605 |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
38475
diff
changeset
|
606 $ "$PYTHON" -c "open('listfile0', 'wb').write(b'fenugreek\0new\0')" |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
607 $ hg debugwalk -v -I 'listfile0:listfile0' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
608 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
609 <includematcher includes='fenugreek(?:/|$)|new(?:/|$)'> |
14248
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
610 f fenugreek fenugreek |
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
611 f new new |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
38475
diff
changeset
|
612 $ "$PYTHON" -c "open('listfile', 'wb').write(b'fenugreek\nnew\r\nmammals/skunk\n')" |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
613 $ hg debugwalk -v -I 'listfile:listfile' |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
614 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
615 <includematcher includes='fenugreek(?:/|$)|new(?:/|$)|mammals/skunk(?:/|$)'> |
14248
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
616 f fenugreek fenugreek |
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
617 f mammals/skunk mammals/skunk |
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
618 f new new |
25c68ac247c1
match: make 'listfile:' split on LF and CRLF
Patrick Mezard <pmezard@gmail.com>
parents:
13962
diff
changeset
|
619 |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
620 $ cd .. |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
621 $ hg debugwalk -v -R t t/mammals/skunk |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
622 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
623 <patternmatcher patterns='mammals/skunk(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
624 f mammals/skunk t/mammals/skunk exact |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
625 $ mkdir t2 |
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
626 $ cd t2 |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
627 $ hg debugwalk -v -R ../t ../t/mammals/skunk |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
628 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
629 <patternmatcher patterns='mammals/skunk(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
630 f mammals/skunk ../t/mammals/skunk exact |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
631 $ hg debugwalk -v --cwd ../t mammals/skunk |
38263
dbf31732ef64
debugwalk: pretty-print nested matcher
Yuya Nishihara <yuya@tcha.org>
parents:
38262
diff
changeset
|
632 * matcher: |
40782
3984409e144b
match: drop unnecessary wrapping of regex in group
Martin von Zweigbergk <martinvonz@google.com>
parents:
40242
diff
changeset
|
633 <patternmatcher patterns='mammals/skunk(?:/|$)'> |
11799
ddebb6a690b4
tests: unify test-walk
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
6048
diff
changeset
|
634 f mammals/skunk mammals/skunk exact |
16913
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15521
diff
changeset
|
635 |
f2719b387380
tests: add missing trailing 'cd ..'
Mads Kiilerich <mads@kiilerich.com>
parents:
15521
diff
changeset
|
636 $ cd .. |
21191
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
637 |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
638 Test split patterns on overflow |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
639 |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
640 $ cd t |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
641 $ echo fennel > overflow.list |
37317
14da486e820d
py3: use print as a function in tests/test-walk.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
36288
diff
changeset
|
642 $ cat >> printnum.py <<EOF |
14da486e820d
py3: use print as a function in tests/test-walk.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
36288
diff
changeset
|
643 > from __future__ import print_function |
14da486e820d
py3: use print as a function in tests/test-walk.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
36288
diff
changeset
|
644 > for i in range(20000 // 100): |
14da486e820d
py3: use print as a function in tests/test-walk.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
36288
diff
changeset
|
645 > print('x' * 100) |
14da486e820d
py3: use print as a function in tests/test-walk.t
Pulkit Goyal <7895pulkit@gmail.com>
parents:
36288
diff
changeset
|
646 > EOF |
39707
5abc47d4ca6b
tests: quote PYTHON usage
Matt Harbison <matt_harbison@yahoo.com>
parents:
38475
diff
changeset
|
647 $ "$PYTHON" printnum.py >> overflow.list |
21191
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
648 $ echo fenugreek >> overflow.list |
38262
7c3a59e2971b
debugwalk: show matcher output only if -v/--verbose
Yuya Nishihara <yuya@tcha.org>
parents:
37317
diff
changeset
|
649 $ hg debugwalk 'listfile:overflow.list' 2>&1 | egrep -v '^xxx' |
21191
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
650 f fennel fennel exact |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
651 f fenugreek fenugreek exact |
a2f4ea82d6d3
match: fix NameError 'pat' on overflow of regex pattern length
Yuya Nishihara <yuya@tcha.org>
parents:
19873
diff
changeset
|
652 $ cd .. |