##// END OF EJS Templates
tests: move tests in test-walk.t using ':' in filenames to conditional section...
Mads Kiilerich -
r16983:13cdc109 default
parent child Browse files
Show More
@@ -1,324 +1,329 b''
1 $ "$TESTDIR/hghave" no-windows || exit 80
1 $ "$TESTDIR/hghave" no-windows || exit 80
2
2
3 $ hg init t
3 $ hg init t
4 $ cd t
4 $ cd t
5 $ mkdir -p beans
5 $ mkdir -p beans
6 $ for b in kidney navy turtle borlotti black pinto; do
6 $ for b in kidney navy turtle borlotti black pinto; do
7 > echo $b > beans/$b
7 > echo $b > beans/$b
8 $ done
8 $ done
9 $ mkdir -p mammals/Procyonidae
9 $ mkdir -p mammals/Procyonidae
10 $ for m in cacomistle coatimundi raccoon; do
10 $ for m in cacomistle coatimundi raccoon; do
11 > echo $m > mammals/Procyonidae/$m
11 > echo $m > mammals/Procyonidae/$m
12 $ done
12 $ done
13 $ echo skunk > mammals/skunk
13 $ echo skunk > mammals/skunk
14 $ echo fennel > fennel
14 $ echo fennel > fennel
15 $ echo fenugreek > fenugreek
15 $ echo fenugreek > fenugreek
16 $ echo fiddlehead > fiddlehead
16 $ echo fiddlehead > fiddlehead
17 $ echo glob:glob > glob:glob
18 $ hg addremove
17 $ hg addremove
19 adding beans/black
18 adding beans/black
20 adding beans/borlotti
19 adding beans/borlotti
21 adding beans/kidney
20 adding beans/kidney
22 adding beans/navy
21 adding beans/navy
23 adding beans/pinto
22 adding beans/pinto
24 adding beans/turtle
23 adding beans/turtle
25 adding fennel
24 adding fennel
26 adding fenugreek
25 adding fenugreek
27 adding fiddlehead
26 adding fiddlehead
28 adding glob:glob
29 adding mammals/Procyonidae/cacomistle
27 adding mammals/Procyonidae/cacomistle
30 adding mammals/Procyonidae/coatimundi
28 adding mammals/Procyonidae/coatimundi
31 adding mammals/Procyonidae/raccoon
29 adding mammals/Procyonidae/raccoon
32 adding mammals/skunk
30 adding mammals/skunk
33 warning: filename contains ':', which is reserved on Windows: 'glob:glob'
34 $ hg commit -m "commit #0"
31 $ hg commit -m "commit #0"
35
32
36 $ hg debugwalk
33 $ hg debugwalk
37 f beans/black beans/black
34 f beans/black beans/black
38 f beans/borlotti beans/borlotti
35 f beans/borlotti beans/borlotti
39 f beans/kidney beans/kidney
36 f beans/kidney beans/kidney
40 f beans/navy beans/navy
37 f beans/navy beans/navy
41 f beans/pinto beans/pinto
38 f beans/pinto beans/pinto
42 f beans/turtle beans/turtle
39 f beans/turtle beans/turtle
43 f fennel fennel
40 f fennel fennel
44 f fenugreek fenugreek
41 f fenugreek fenugreek
45 f fiddlehead fiddlehead
42 f fiddlehead fiddlehead
46 f glob:glob glob:glob
47 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
43 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
48 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
44 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
49 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
45 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
50 f mammals/skunk mammals/skunk
46 f mammals/skunk mammals/skunk
51 $ hg debugwalk -I.
47 $ hg debugwalk -I.
52 f beans/black beans/black
48 f beans/black beans/black
53 f beans/borlotti beans/borlotti
49 f beans/borlotti beans/borlotti
54 f beans/kidney beans/kidney
50 f beans/kidney beans/kidney
55 f beans/navy beans/navy
51 f beans/navy beans/navy
56 f beans/pinto beans/pinto
52 f beans/pinto beans/pinto
57 f beans/turtle beans/turtle
53 f beans/turtle beans/turtle
58 f fennel fennel
54 f fennel fennel
59 f fenugreek fenugreek
55 f fenugreek fenugreek
60 f fiddlehead fiddlehead
56 f fiddlehead fiddlehead
61 f glob:glob glob:glob
62 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
57 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
63 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
58 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
64 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
59 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
65 f mammals/skunk mammals/skunk
60 f mammals/skunk mammals/skunk
66
61
67 $ cd mammals
62 $ cd mammals
68 $ hg debugwalk
63 $ hg debugwalk
69 f beans/black ../beans/black
64 f beans/black ../beans/black
70 f beans/borlotti ../beans/borlotti
65 f beans/borlotti ../beans/borlotti
71 f beans/kidney ../beans/kidney
66 f beans/kidney ../beans/kidney
72 f beans/navy ../beans/navy
67 f beans/navy ../beans/navy
73 f beans/pinto ../beans/pinto
68 f beans/pinto ../beans/pinto
74 f beans/turtle ../beans/turtle
69 f beans/turtle ../beans/turtle
75 f fennel ../fennel
70 f fennel ../fennel
76 f fenugreek ../fenugreek
71 f fenugreek ../fenugreek
77 f fiddlehead ../fiddlehead
72 f fiddlehead ../fiddlehead
78 f glob:glob ../glob:glob
79 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
73 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
80 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
74 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
81 f mammals/Procyonidae/raccoon Procyonidae/raccoon
75 f mammals/Procyonidae/raccoon Procyonidae/raccoon
82 f mammals/skunk skunk
76 f mammals/skunk skunk
83 $ hg debugwalk -X ../beans
77 $ hg debugwalk -X ../beans
84 f fennel ../fennel
78 f fennel ../fennel
85 f fenugreek ../fenugreek
79 f fenugreek ../fenugreek
86 f fiddlehead ../fiddlehead
80 f fiddlehead ../fiddlehead
87 f glob:glob ../glob:glob
88 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
81 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
89 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
82 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
90 f mammals/Procyonidae/raccoon Procyonidae/raccoon
83 f mammals/Procyonidae/raccoon Procyonidae/raccoon
91 f mammals/skunk skunk
84 f mammals/skunk skunk
92 $ hg debugwalk -I '*k'
85 $ hg debugwalk -I '*k'
93 f mammals/skunk skunk
86 f mammals/skunk skunk
94 $ hg debugwalk -I 'glob:*k'
87 $ hg debugwalk -I 'glob:*k'
95 f mammals/skunk skunk
88 f mammals/skunk skunk
96 $ hg debugwalk -I 'relglob:*k'
89 $ hg debugwalk -I 'relglob:*k'
97 f beans/black ../beans/black
90 f beans/black ../beans/black
98 f fenugreek ../fenugreek
91 f fenugreek ../fenugreek
99 f mammals/skunk skunk
92 f mammals/skunk skunk
100 $ hg debugwalk -I 'relglob:*k' .
93 $ hg debugwalk -I 'relglob:*k' .
101 f mammals/skunk skunk
94 f mammals/skunk skunk
102 $ hg debugwalk -I 're:.*k$'
95 $ hg debugwalk -I 're:.*k$'
103 f beans/black ../beans/black
96 f beans/black ../beans/black
104 f fenugreek ../fenugreek
97 f fenugreek ../fenugreek
105 f mammals/skunk skunk
98 f mammals/skunk skunk
106 $ hg debugwalk -I 'relre:.*k$'
99 $ hg debugwalk -I 'relre:.*k$'
107 f beans/black ../beans/black
100 f beans/black ../beans/black
108 f fenugreek ../fenugreek
101 f fenugreek ../fenugreek
109 f mammals/skunk skunk
102 f mammals/skunk skunk
110 $ hg debugwalk -I 'path:beans'
103 $ hg debugwalk -I 'path:beans'
111 f beans/black ../beans/black
104 f beans/black ../beans/black
112 f beans/borlotti ../beans/borlotti
105 f beans/borlotti ../beans/borlotti
113 f beans/kidney ../beans/kidney
106 f beans/kidney ../beans/kidney
114 f beans/navy ../beans/navy
107 f beans/navy ../beans/navy
115 f beans/pinto ../beans/pinto
108 f beans/pinto ../beans/pinto
116 f beans/turtle ../beans/turtle
109 f beans/turtle ../beans/turtle
117 $ hg debugwalk -I 'relpath:../beans'
110 $ hg debugwalk -I 'relpath:../beans'
118 f beans/black ../beans/black
111 f beans/black ../beans/black
119 f beans/borlotti ../beans/borlotti
112 f beans/borlotti ../beans/borlotti
120 f beans/kidney ../beans/kidney
113 f beans/kidney ../beans/kidney
121 f beans/navy ../beans/navy
114 f beans/navy ../beans/navy
122 f beans/pinto ../beans/pinto
115 f beans/pinto ../beans/pinto
123 f beans/turtle ../beans/turtle
116 f beans/turtle ../beans/turtle
124 $ hg debugwalk .
117 $ hg debugwalk .
125 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
118 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
126 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
119 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
127 f mammals/Procyonidae/raccoon Procyonidae/raccoon
120 f mammals/Procyonidae/raccoon Procyonidae/raccoon
128 f mammals/skunk skunk
121 f mammals/skunk skunk
129 $ hg debugwalk -I.
122 $ hg debugwalk -I.
130 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
123 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
131 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
124 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
132 f mammals/Procyonidae/raccoon Procyonidae/raccoon
125 f mammals/Procyonidae/raccoon Procyonidae/raccoon
133 f mammals/skunk skunk
126 f mammals/skunk skunk
134 $ hg debugwalk Procyonidae
127 $ hg debugwalk Procyonidae
135 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
128 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
136 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
129 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
137 f mammals/Procyonidae/raccoon Procyonidae/raccoon
130 f mammals/Procyonidae/raccoon Procyonidae/raccoon
138
131
139 $ cd Procyonidae
132 $ cd Procyonidae
140 $ hg debugwalk .
133 $ hg debugwalk .
141 f mammals/Procyonidae/cacomistle cacomistle
134 f mammals/Procyonidae/cacomistle cacomistle
142 f mammals/Procyonidae/coatimundi coatimundi
135 f mammals/Procyonidae/coatimundi coatimundi
143 f mammals/Procyonidae/raccoon raccoon
136 f mammals/Procyonidae/raccoon raccoon
144 $ hg debugwalk ..
137 $ hg debugwalk ..
145 f mammals/Procyonidae/cacomistle cacomistle
138 f mammals/Procyonidae/cacomistle cacomistle
146 f mammals/Procyonidae/coatimundi coatimundi
139 f mammals/Procyonidae/coatimundi coatimundi
147 f mammals/Procyonidae/raccoon raccoon
140 f mammals/Procyonidae/raccoon raccoon
148 f mammals/skunk ../skunk
141 f mammals/skunk ../skunk
149 $ cd ..
142 $ cd ..
150
143
151 $ hg debugwalk ../beans
144 $ hg debugwalk ../beans
152 f beans/black ../beans/black
145 f beans/black ../beans/black
153 f beans/borlotti ../beans/borlotti
146 f beans/borlotti ../beans/borlotti
154 f beans/kidney ../beans/kidney
147 f beans/kidney ../beans/kidney
155 f beans/navy ../beans/navy
148 f beans/navy ../beans/navy
156 f beans/pinto ../beans/pinto
149 f beans/pinto ../beans/pinto
157 f beans/turtle ../beans/turtle
150 f beans/turtle ../beans/turtle
158 $ hg debugwalk .
151 $ hg debugwalk .
159 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
152 f mammals/Procyonidae/cacomistle Procyonidae/cacomistle
160 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
153 f mammals/Procyonidae/coatimundi Procyonidae/coatimundi
161 f mammals/Procyonidae/raccoon Procyonidae/raccoon
154 f mammals/Procyonidae/raccoon Procyonidae/raccoon
162 f mammals/skunk skunk
155 f mammals/skunk skunk
163 $ hg debugwalk .hg
156 $ hg debugwalk .hg
164 abort: path 'mammals/.hg' is inside nested repo 'mammals'
157 abort: path 'mammals/.hg' is inside nested repo 'mammals'
165 [255]
158 [255]
166 $ hg debugwalk ../.hg
159 $ hg debugwalk ../.hg
167 abort: path contains illegal component: .hg
160 abort: path contains illegal component: .hg
168 [255]
161 [255]
169 $ cd ..
162 $ cd ..
170
163
171 $ hg debugwalk -Ibeans
164 $ hg debugwalk -Ibeans
172 f beans/black beans/black
165 f beans/black beans/black
173 f beans/borlotti beans/borlotti
166 f beans/borlotti beans/borlotti
174 f beans/kidney beans/kidney
167 f beans/kidney beans/kidney
175 f beans/navy beans/navy
168 f beans/navy beans/navy
176 f beans/pinto beans/pinto
169 f beans/pinto beans/pinto
177 f beans/turtle beans/turtle
170 f beans/turtle beans/turtle
178 $ hg debugwalk -I '{*,{b,m}*/*}k'
171 $ hg debugwalk -I '{*,{b,m}*/*}k'
179 f beans/black beans/black
172 f beans/black beans/black
180 f fenugreek fenugreek
173 f fenugreek fenugreek
181 f mammals/skunk mammals/skunk
174 f mammals/skunk mammals/skunk
182 $ hg debugwalk 'glob:mammals/../beans/b*'
175 $ hg debugwalk 'glob:mammals/../beans/b*'
183 f beans/black beans/black
176 f beans/black beans/black
184 f beans/borlotti beans/borlotti
177 f beans/borlotti beans/borlotti
185 $ hg debugwalk '-X*/Procyonidae' mammals
178 $ hg debugwalk '-X*/Procyonidae' mammals
186 f mammals/skunk mammals/skunk
179 f mammals/skunk mammals/skunk
187 $ hg debugwalk path:mammals
180 $ hg debugwalk path:mammals
188 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
181 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
189 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
182 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
190 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
183 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
191 f mammals/skunk mammals/skunk
184 f mammals/skunk mammals/skunk
192 $ hg debugwalk ..
185 $ hg debugwalk ..
193 abort: .. not under root
186 abort: .. not under root
194 [255]
187 [255]
195 $ hg debugwalk beans/../..
188 $ hg debugwalk beans/../..
196 abort: beans/../.. not under root
189 abort: beans/../.. not under root
197 [255]
190 [255]
198 $ hg debugwalk .hg
191 $ hg debugwalk .hg
199 abort: path contains illegal component: .hg
192 abort: path contains illegal component: .hg
200 [255]
193 [255]
201 $ hg debugwalk beans/../.hg
194 $ hg debugwalk beans/../.hg
202 abort: path contains illegal component: .hg
195 abort: path contains illegal component: .hg
203 [255]
196 [255]
204 $ hg debugwalk beans/../.hg/data
197 $ hg debugwalk beans/../.hg/data
205 abort: path contains illegal component: .hg/data
198 abort: path contains illegal component: .hg/data
206 [255]
199 [255]
207 $ hg debugwalk beans/.hg
200 $ hg debugwalk beans/.hg
208 abort: path 'beans/.hg' is inside nested repo 'beans'
201 abort: path 'beans/.hg' is inside nested repo 'beans'
209 [255]
202 [255]
210
203
211 Test absolute paths:
204 Test absolute paths:
212
205
213 $ hg debugwalk `pwd`/beans
206 $ hg debugwalk `pwd`/beans
214 f beans/black beans/black
207 f beans/black beans/black
215 f beans/borlotti beans/borlotti
208 f beans/borlotti beans/borlotti
216 f beans/kidney beans/kidney
209 f beans/kidney beans/kidney
217 f beans/navy beans/navy
210 f beans/navy beans/navy
218 f beans/pinto beans/pinto
211 f beans/pinto beans/pinto
219 f beans/turtle beans/turtle
212 f beans/turtle beans/turtle
220 $ hg debugwalk `pwd`/..
213 $ hg debugwalk `pwd`/..
221 abort: $TESTTMP/t/.. not under root
214 abort: $TESTTMP/t/.. not under root
222 [255]
215 [255]
223
216
224 Test patterns:
217 Test patterns:
225
218
226 $ hg debugwalk glob:\*
219 $ hg debugwalk glob:\*
227 f fennel fennel
220 f fennel fennel
228 f fenugreek fenugreek
221 f fenugreek fenugreek
229 f fiddlehead fiddlehead
222 f fiddlehead fiddlehead
223 #if eol-in-paths
224 $ echo glob:glob > glob:glob
225 $ hg addremove
226 adding glob:glob
227 warning: filename contains ':', which is reserved on Windows: 'glob:glob'
228 $ hg debugwalk glob:\*
229 f fennel fennel
230 f fenugreek fenugreek
231 f fiddlehead fiddlehead
230 f glob:glob glob:glob
232 f glob:glob glob:glob
233 $ rm glob:glob
234 $ hg addremove
235 removing glob:glob
236 #endif
231
237
232 $ hg debugwalk 'glob:**e'
238 $ hg debugwalk 'glob:**e'
233 f beans/turtle beans/turtle
239 f beans/turtle beans/turtle
234 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
240 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
235
241
236 $ hg debugwalk 're:.*[kb]$'
242 $ hg debugwalk 're:.*[kb]$'
237 f beans/black beans/black
243 f beans/black beans/black
238 f fenugreek fenugreek
244 f fenugreek fenugreek
239 f glob:glob glob:glob
240 f mammals/skunk mammals/skunk
245 f mammals/skunk mammals/skunk
241
246
242 $ hg debugwalk path:beans/black
247 $ hg debugwalk path:beans/black
243 f beans/black beans/black exact
248 f beans/black beans/black exact
244 $ hg debugwalk path:beans//black
249 $ hg debugwalk path:beans//black
245 f beans/black beans/black exact
250 f beans/black beans/black exact
246
251
247 $ hg debugwalk relglob:Procyonidae
252 $ hg debugwalk relglob:Procyonidae
248 $ hg debugwalk 'relglob:Procyonidae/**'
253 $ hg debugwalk 'relglob:Procyonidae/**'
249 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
254 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
250 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
255 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
251 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
256 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
252 $ hg debugwalk 'relglob:Procyonidae/**' fennel
257 $ hg debugwalk 'relglob:Procyonidae/**' fennel
253 f fennel fennel exact
258 f fennel fennel exact
254 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
259 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
255 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
260 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
256 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
261 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
257 $ hg debugwalk beans 'glob:beans/*'
262 $ hg debugwalk beans 'glob:beans/*'
258 f beans/black beans/black
263 f beans/black beans/black
259 f beans/borlotti beans/borlotti
264 f beans/borlotti beans/borlotti
260 f beans/kidney beans/kidney
265 f beans/kidney beans/kidney
261 f beans/navy beans/navy
266 f beans/navy beans/navy
262 f beans/pinto beans/pinto
267 f beans/pinto beans/pinto
263 f beans/turtle beans/turtle
268 f beans/turtle beans/turtle
264 $ hg debugwalk 'glob:mamm**'
269 $ hg debugwalk 'glob:mamm**'
265 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
270 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
266 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
271 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
267 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
272 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
268 f mammals/skunk mammals/skunk
273 f mammals/skunk mammals/skunk
269 $ hg debugwalk 'glob:mamm**' fennel
274 $ hg debugwalk 'glob:mamm**' fennel
270 f fennel fennel exact
275 f fennel fennel exact
271 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
276 f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle
272 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
277 f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi
273 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
278 f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon
274 f mammals/skunk mammals/skunk
279 f mammals/skunk mammals/skunk
275 $ hg debugwalk 'glob:j*'
280 $ hg debugwalk 'glob:j*'
276 $ hg debugwalk NOEXIST
281 $ hg debugwalk NOEXIST
277 NOEXIST: * (glob)
282 NOEXIST: * (glob)
278
283
279 #if fifo
284 #if fifo
280 $ mkfifo fifo
285 $ mkfifo fifo
281 $ hg debugwalk fifo
286 $ hg debugwalk fifo
282 fifo: unsupported file type (type is fifo)
287 fifo: unsupported file type (type is fifo)
283 #endif
288 #endif
284
289
285 $ rm fenugreek
290 $ rm fenugreek
286 $ hg debugwalk fenugreek
291 $ hg debugwalk fenugreek
287 f fenugreek fenugreek exact
292 f fenugreek fenugreek exact
288 $ hg rm fenugreek
293 $ hg rm fenugreek
289 $ hg debugwalk fenugreek
294 $ hg debugwalk fenugreek
290 f fenugreek fenugreek exact
295 f fenugreek fenugreek exact
291 $ touch new
296 $ touch new
292 $ hg debugwalk new
297 $ hg debugwalk new
293 f new new exact
298 f new new exact
294
299
295 $ mkdir ignored
300 $ mkdir ignored
296 $ touch ignored/file
301 $ touch ignored/file
297 $ echo '^ignored$' > .hgignore
302 $ echo '^ignored$' > .hgignore
298 $ hg debugwalk ignored
303 $ hg debugwalk ignored
299 $ hg debugwalk ignored/file
304 $ hg debugwalk ignored/file
300 f ignored/file ignored/file exact
305 f ignored/file ignored/file exact
301
306
302 Test listfile and listfile0
307 Test listfile and listfile0
303
308
304 $ python -c "file('../listfile0', 'wb').write('fenugreek\0new\0')"
309 $ python -c "file('../listfile0', 'wb').write('fenugreek\0new\0')"
305 $ hg debugwalk -I 'listfile0:../listfile0'
310 $ hg debugwalk -I 'listfile0:../listfile0'
306 f fenugreek fenugreek
311 f fenugreek fenugreek
307 f new new
312 f new new
308 $ python -c "file('../listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')"
313 $ python -c "file('../listfile', 'wb').write('fenugreek\nnew\r\nmammals/skunk\n')"
309 $ hg debugwalk -I 'listfile:../listfile'
314 $ hg debugwalk -I 'listfile:../listfile'
310 f fenugreek fenugreek
315 f fenugreek fenugreek
311 f mammals/skunk mammals/skunk
316 f mammals/skunk mammals/skunk
312 f new new
317 f new new
313
318
314 $ cd ..
319 $ cd ..
315 $ hg debugwalk -R t t/mammals/skunk
320 $ hg debugwalk -R t t/mammals/skunk
316 f mammals/skunk t/mammals/skunk exact
321 f mammals/skunk t/mammals/skunk exact
317 $ mkdir t2
322 $ mkdir t2
318 $ cd t2
323 $ cd t2
319 $ hg debugwalk -R ../t ../t/mammals/skunk
324 $ hg debugwalk -R ../t ../t/mammals/skunk
320 f mammals/skunk ../t/mammals/skunk exact
325 f mammals/skunk ../t/mammals/skunk exact
321 $ hg debugwalk --cwd ../t mammals/skunk
326 $ hg debugwalk --cwd ../t mammals/skunk
322 f mammals/skunk mammals/skunk exact
327 f mammals/skunk mammals/skunk exact
323
328
324 $ cd ..
329 $ cd ..
General Comments 0
You need to be logged in to leave comments. Login now