Mercurial > hg
annotate tests/test-locate.out @ 4307: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 |
rev | line source |
---|---|
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
1 adding a |
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
2 adding b |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
3 adding dir.h/foo |
2487 | 4 adding t.h |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
5 adding t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
6 adding t/e.h |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
7 adding t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
8 hg locate a |
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
9 a |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
10 |
4196
1c69c73d85d9
locate: exit(1) if we didn't print any file
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4195
diff
changeset
|
11 locate succeeded |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
12 hg locate NONEXISTENT |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
13 |
4196
1c69c73d85d9
locate: exit(1) if we didn't print any file
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4195
diff
changeset
|
14 locate failed |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
15 hg locate |
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
16 a |
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
17 b |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
18 dir.h/foo |
2487 | 19 t.h |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
20 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
21 t/e.h |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
22 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
23 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
24 hg locate a |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
25 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
26 hg locate NONEXISTENT |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
27 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
28 hg locate |
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
29 b |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
30 dir.h/foo |
2487 | 31 t.h |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
32 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
33 t/e.h |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
34 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
35 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
36 hg locate -r 0 a |
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
37 a |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
38 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
39 hg locate -r 0 NONEXISTENT |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
40 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
41 hg locate -r 0 |
1622
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
42 a |
5e9168401a68
fix locate broken since 63799b01985c
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
diff
changeset
|
43 b |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
44 dir.h/foo |
2487 | 45 t.h |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
46 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
47 t/e.h |
4194
8e947b0e53cc
localrepo.walk: if we're walking a specific revision, sort the files
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
2487
diff
changeset
|
48 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
49 |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
50 % -I/-X with relative path should work |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
51 hg locate |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
52 b |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
53 dir.h/foo |
2487 | 54 t.h |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
55 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
56 t/e.h |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
57 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
58 |
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
59 hg locate -I ../t |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
60 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
61 t/e.h |
2480
519a1011db91
fix -I/-X when relative paths used or in subdir
Vadim Gelfer <vadim.gelfer@gmail.com>
parents:
1933
diff
changeset
|
62 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
63 |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
64 hg locate t/** |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
65 t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
66 t/e.h |
2487 | 67 t/x |
4234
fe0c0a317c09
make the output of test-locate more readable
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4196
diff
changeset
|
68 |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
69 hg locate b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
70 ../b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
71 ../t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
72 |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
73 hg locate *.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
74 ../t.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
75 ../t/e.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
76 |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
77 hg locate path:t/x |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
78 ../t/x |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
79 |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
80 hg locate re:.*\.h$ |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
81 ../t.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
82 ../t/e.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
83 |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
84 hg locate -r 0 b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
85 ../b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
86 ../t/b |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
87 |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
88 hg locate -r 0 *.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
89 ../t.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
90 ../t/e.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
91 |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
92 hg locate -r 0 path:t/x |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
93 ../t/x |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
94 |
4307
702f48570eb3
change relglob: patterns to be consistent with glob: patterns
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4235
diff
changeset
|
95 hg locate -r 0 re:.*\.h$ |
4235
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
96 ../t.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
97 ../t/e.h |
eca3277c4220
add some more tests to hg locate
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4234
diff
changeset
|
98 |