Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-locate.out @ 4304:702f48570eb3
change relglob: patterns to be consistent with glob: patterns
With this change, you have to use "hg locate 'hgweb/**'" to locate
all the files in directories named hgweb. OTOH, "hg locate '*l'"
will locate only files that end with "l" - e.g. a file called "hg.py"
will not be matched just because it's in a directory whose name ends
with "l" (e.g. "mercurial").
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 04 Apr 2007 04:22:06 -0300 |
parents | eca3277c4220 |
children | a5cde03cd019 |
comparison
equal
deleted
inserted
replaced
4303:6cecaec07cc9 | 4304:702f48570eb3 |
---|---|
1 adding a | 1 adding a |
2 adding b | 2 adding b |
3 adding dir.h/foo | |
3 adding t.h | 4 adding t.h |
4 adding t/b | 5 adding t/b |
5 adding t/e.h | 6 adding t/e.h |
6 adding t/x | 7 adding t/x |
7 hg locate a | 8 hg locate a |
12 | 13 |
13 locate failed | 14 locate failed |
14 hg locate | 15 hg locate |
15 a | 16 a |
16 b | 17 b |
18 dir.h/foo | |
17 t.h | 19 t.h |
18 t/b | 20 t/b |
19 t/e.h | 21 t/e.h |
20 t/x | 22 t/x |
21 | 23 |
23 | 25 |
24 hg locate NONEXISTENT | 26 hg locate NONEXISTENT |
25 | 27 |
26 hg locate | 28 hg locate |
27 b | 29 b |
30 dir.h/foo | |
28 t.h | 31 t.h |
29 t/b | 32 t/b |
30 t/e.h | 33 t/e.h |
31 t/x | 34 t/x |
32 | 35 |
36 hg locate -r 0 NONEXISTENT | 39 hg locate -r 0 NONEXISTENT |
37 | 40 |
38 hg locate -r 0 | 41 hg locate -r 0 |
39 a | 42 a |
40 b | 43 b |
44 dir.h/foo | |
41 t.h | 45 t.h |
42 t/b | 46 t/b |
43 t/e.h | 47 t/e.h |
44 t/x | 48 t/x |
45 | 49 |
46 % -I/-X with relative path should work | 50 % -I/-X with relative path should work |
47 hg locate | 51 hg locate |
48 b | 52 b |
53 dir.h/foo | |
49 t.h | 54 t.h |
50 t/b | 55 t/b |
51 t/e.h | 56 t/e.h |
52 t/x | 57 t/x |
53 | 58 |
54 hg locate -I ../t | 59 hg locate -I ../t |
55 t/b | 60 t/b |
56 t/e.h | 61 t/e.h |
57 t/x | 62 t/x |
58 | 63 |
59 hg locate t | 64 hg locate t/** |
60 t/b | 65 t/b |
61 t/e.h | 66 t/e.h |
62 t/x | 67 t/x |
63 | 68 |
64 hg locate b | 69 hg locate b |
70 ../t/e.h | 75 ../t/e.h |
71 | 76 |
72 hg locate path:t/x | 77 hg locate path:t/x |
73 ../t/x | 78 ../t/x |
74 | 79 |
75 hg locate re:.*\.h | 80 hg locate re:.*\.h$ |
76 ../t.h | 81 ../t.h |
77 ../t/e.h | 82 ../t/e.h |
78 | 83 |
79 hg locate -r 0 b | 84 hg locate -r 0 b |
80 ../b | 85 ../b |
85 ../t/e.h | 90 ../t/e.h |
86 | 91 |
87 hg locate -r 0 path:t/x | 92 hg locate -r 0 path:t/x |
88 ../t/x | 93 ../t/x |
89 | 94 |
90 hg locate -r 0 re:.*\.h | 95 hg locate -r 0 re:.*\.h$ |
91 ../t.h | 96 ../t.h |
92 ../t/e.h | 97 ../t/e.h |
93 | 98 |