comparison tests/test-locate.out @ 4235:eca3277c4220

add some more tests to hg locate
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 16 Mar 2007 22:48:22 -0300
parents fe0c0a317c09
children 702f48570eb3
comparison
equal deleted inserted replaced
4234:fe0c0a317c09 4235:eca3277c4220
1 adding a 1 adding a
2 adding b 2 adding b
3 adding t.h 3 adding t.h
4 adding t/b
5 adding t/e.h
4 adding t/x 6 adding t/x
5 hg locate a 7 hg locate a
6 a 8 a
7 9
8 locate succeeded 10 locate succeeded
11 locate failed 13 locate failed
12 hg locate 14 hg locate
13 a 15 a
14 b 16 b
15 t.h 17 t.h
18 t/b
19 t/e.h
16 t/x 20 t/x
17 21
18 hg locate a 22 hg locate a
19 23
20 hg locate NONEXISTENT 24 hg locate NONEXISTENT
21 25
22 hg locate 26 hg locate
23 b 27 b
24 t.h 28 t.h
29 t/b
30 t/e.h
25 t/x 31 t/x
26 32
27 hg locate -r 0 a 33 hg locate -r 0 a
28 a 34 a
29 35
31 37
32 hg locate -r 0 38 hg locate -r 0
33 a 39 a
34 b 40 b
35 t.h 41 t.h
42 t/b
43 t/e.h
36 t/x 44 t/x
37 45
38 % -I/-X with relative path should work 46 % -I/-X with relative path should work
39 hg locate 47 hg locate
40 b 48 b
41 t.h 49 t.h
50 t/b
51 t/e.h
42 t/x 52 t/x
43 53
44 hg locate -I ../t 54 hg locate -I ../t
55 t/b
56 t/e.h
45 t/x 57 t/x
46 58
47 hg locate t 59 hg locate t
60 t/b
61 t/e.h
48 t/x 62 t/x
49 63
64 hg locate b
65 ../b
66 ../t/b
67
68 hg locate *.h
69 ../t.h
70 ../t/e.h
71
72 hg locate path:t/x
73 ../t/x
74
75 hg locate re:.*\.h
76 ../t.h
77 ../t/e.h
78
79 hg locate -r 0 b
80 ../b
81 ../t/b
82
83 hg locate -r 0 *.h
84 ../t.h
85 ../t/e.h
86
87 hg locate -r 0 path:t/x
88 ../t/x
89
90 hg locate -r 0 re:.*\.h
91 ../t.h
92 ../t/e.h
93