Show More
@@ -1,5 +1,19 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | debugwalk() | |||
|
4 | { | |||
|
5 | echo "hg debugwalk $@" | |||
|
6 | hg debugwalk "$@" | |||
|
7 | echo | |||
|
8 | } | |||
|
9 | ||||
|
10 | chdir() | |||
|
11 | { | |||
|
12 | echo "cd $@" | |||
|
13 | cd "$@" | |||
|
14 | echo | |||
|
15 | } | |||
|
16 | ||||
3 | mkdir t |
|
17 | mkdir t | |
4 | cd t |
|
18 | cd t | |
5 | hg init |
|
19 | hg init | |
@@ -18,51 +32,51 b' echo fiddlehead > fiddlehead' | |||||
18 | echo glob:glob > glob:glob |
|
32 | echo glob:glob > glob:glob | |
19 | hg addremove |
|
33 | hg addremove | |
20 | hg commit -m "commit #0" -d "1000000 0" |
|
34 | hg commit -m "commit #0" -d "1000000 0" | |
21 |
|
|
35 | debugwalk | |
22 |
|
|
36 | debugwalk -I. | |
23 | cd mammals |
|
37 | chdir mammals | |
24 |
|
|
38 | debugwalk . | |
25 |
|
|
39 | debugwalk -I. | |
26 |
|
|
40 | debugwalk Procyonidae | |
27 | cd Procyonidae |
|
41 | chdir Procyonidae | |
28 |
|
|
42 | debugwalk . | |
29 |
|
|
43 | debugwalk .. | |
30 | cd .. |
|
44 | chdir .. | |
31 |
|
|
45 | debugwalk ../beans | |
32 |
|
|
46 | debugwalk . | |
33 |
|
|
47 | debugwalk .hg | |
34 |
|
|
48 | debugwalk ../.hg | |
35 | cd .. |
|
49 | chdir .. | |
36 |
|
|
50 | debugwalk -Ibeans | |
37 |
|
|
51 | debugwalk 'glob:mammals/../beans/b*' | |
38 |
|
|
52 | debugwalk '-X*/Procyonidae' mammals | |
39 |
|
|
53 | debugwalk path:mammals | |
40 |
|
|
54 | debugwalk .. | |
41 |
|
|
55 | debugwalk beans/../.. | |
42 |
|
|
56 | debugwalk .hg | |
43 |
|
|
57 | debugwalk beans/../.hg | |
44 |
|
|
58 | debugwalk beans/../.hg/data | |
45 |
|
|
59 | debugwalk beans/.hg | |
46 | # Don't know how to test absolute paths without always getting a false |
|
60 | # Don't know how to test absolute paths without always getting a false | |
47 | # error. |
|
61 | # error. | |
48 |
# |
|
62 | #debugwalk `pwd`/beans | |
49 |
# |
|
63 | #debugwalk `pwd`/.. | |
50 |
|
|
64 | debugwalk glob:\* | |
51 |
|
|
65 | debugwalk 're:.*[kb]$' | |
52 |
|
|
66 | debugwalk path:beans/black | |
53 |
|
|
67 | debugwalk path:beans//black | |
54 |
|
|
68 | debugwalk relglob:Procyonidae | |
55 |
|
|
69 | debugwalk relglob:Procyonidae/ fennel | |
56 |
|
|
70 | debugwalk beans 'glob:beans/*' | |
57 |
|
|
71 | debugwalk 'glob:mamm**' | |
58 |
|
|
72 | debugwalk 'glob:mamm**' fennel | |
59 |
|
|
73 | debugwalk 'glob:j*' | |
60 |
|
|
74 | debugwalk NOEXIST | |
61 | mkfifo fifo |
|
75 | mkfifo fifo | |
62 |
|
|
76 | debugwalk fifo | |
63 | rm fenugreek |
|
77 | rm fenugreek | |
64 |
|
|
78 | debugwalk fenugreek | |
65 | hg rm fenugreek |
|
79 | hg rm fenugreek | |
66 |
|
|
80 | debugwalk fenugreek | |
67 | touch new |
|
81 | touch new | |
68 |
|
|
82 | debugwalk new |
@@ -12,6 +12,7 b' adding mammals/Procyonidae/cacomistle' | |||||
12 | adding mammals/Procyonidae/coatimundi |
|
12 | adding mammals/Procyonidae/coatimundi | |
13 | adding mammals/Procyonidae/raccoon |
|
13 | adding mammals/Procyonidae/raccoon | |
14 | adding mammals/skunk |
|
14 | adding mammals/skunk | |
|
15 | hg debugwalk | |||
15 | f beans/black beans/black |
|
16 | f beans/black beans/black | |
16 | f beans/borlotti beans/borlotti |
|
17 | f beans/borlotti beans/borlotti | |
17 | f beans/kidney beans/kidney |
|
18 | f beans/kidney beans/kidney | |
@@ -26,6 +27,8 b' f mammals/Procyonidae/cacomistle mamma' | |||||
26 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
27 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
27 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
28 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
28 | f mammals/skunk mammals/skunk |
|
29 | f mammals/skunk mammals/skunk | |
|
30 | ||||
|
31 | hg debugwalk -I. | |||
29 | f beans/black beans/black |
|
32 | f beans/black beans/black | |
30 | f beans/borlotti beans/borlotti |
|
33 | f beans/borlotti beans/borlotti | |
31 | f beans/kidney beans/kidney |
|
34 | f beans/kidney beans/kidney | |
@@ -40,93 +43,170 b' f mammals/Procyonidae/cacomistle mamma' | |||||
40 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
43 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
41 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
44 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
42 | f mammals/skunk mammals/skunk |
|
45 | f mammals/skunk mammals/skunk | |
|
46 | ||||
|
47 | cd mammals | |||
|
48 | ||||
|
49 | hg debugwalk . | |||
43 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
|
50 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | |
44 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
|
51 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | |
45 | f mammals/Procyonidae/raccoon Procyonidae/raccoon |
|
52 | f mammals/Procyonidae/raccoon Procyonidae/raccoon | |
46 | f mammals/skunk skunk |
|
53 | f mammals/skunk skunk | |
|
54 | ||||
|
55 | hg debugwalk -I. | |||
47 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
|
56 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | |
48 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
|
57 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | |
49 | f mammals/Procyonidae/raccoon Procyonidae/raccoon |
|
58 | f mammals/Procyonidae/raccoon Procyonidae/raccoon | |
50 | f mammals/skunk skunk |
|
59 | f mammals/skunk skunk | |
|
60 | ||||
|
61 | hg debugwalk Procyonidae | |||
51 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
|
62 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | |
52 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
|
63 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | |
53 | f mammals/Procyonidae/raccoon Procyonidae/raccoon |
|
64 | f mammals/Procyonidae/raccoon Procyonidae/raccoon | |
|
65 | ||||
|
66 | cd Procyonidae | |||
|
67 | ||||
|
68 | hg debugwalk . | |||
54 | f mammals/Procyonidae/cacomistle cacomistle |
|
69 | f mammals/Procyonidae/cacomistle cacomistle | |
55 | f mammals/Procyonidae/coatimundi coatimundi |
|
70 | f mammals/Procyonidae/coatimundi coatimundi | |
56 | f mammals/Procyonidae/raccoon raccoon |
|
71 | f mammals/Procyonidae/raccoon raccoon | |
|
72 | ||||
|
73 | hg debugwalk .. | |||
57 | f mammals/Procyonidae/cacomistle cacomistle |
|
74 | f mammals/Procyonidae/cacomistle cacomistle | |
58 | f mammals/Procyonidae/coatimundi coatimundi |
|
75 | f mammals/Procyonidae/coatimundi coatimundi | |
59 | f mammals/Procyonidae/raccoon raccoon |
|
76 | f mammals/Procyonidae/raccoon raccoon | |
60 | f mammals/skunk ../skunk |
|
77 | f mammals/skunk ../skunk | |
|
78 | ||||
|
79 | cd .. | |||
|
80 | ||||
|
81 | hg debugwalk ../beans | |||
61 | f beans/black ../beans/black |
|
82 | f beans/black ../beans/black | |
62 | f beans/borlotti ../beans/borlotti |
|
83 | f beans/borlotti ../beans/borlotti | |
63 | f beans/kidney ../beans/kidney |
|
84 | f beans/kidney ../beans/kidney | |
64 | f beans/navy ../beans/navy |
|
85 | f beans/navy ../beans/navy | |
65 | f beans/pinto ../beans/pinto |
|
86 | f beans/pinto ../beans/pinto | |
66 | f beans/turtle ../beans/turtle |
|
87 | f beans/turtle ../beans/turtle | |
|
88 | ||||
|
89 | hg debugwalk . | |||
67 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle |
|
90 | f mammals/Procyonidae/cacomistle Procyonidae/cacomistle | |
68 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi |
|
91 | f mammals/Procyonidae/coatimundi Procyonidae/coatimundi | |
69 | f mammals/Procyonidae/raccoon Procyonidae/raccoon |
|
92 | f mammals/Procyonidae/raccoon Procyonidae/raccoon | |
70 | f mammals/skunk skunk |
|
93 | f mammals/skunk skunk | |
|
94 | ||||
|
95 | hg debugwalk .hg | |||
71 | .hg: No such file or directory |
|
96 | .hg: No such file or directory | |
|
97 | ||||
|
98 | hg debugwalk ../.hg | |||
72 | abort: path contains illegal component: .hg |
|
99 | abort: path contains illegal component: .hg | |
73 |
|
100 | |||
|
101 | ||||
|
102 | cd .. | |||
|
103 | ||||
|
104 | hg debugwalk -Ibeans | |||
74 | f beans/black beans/black |
|
105 | f beans/black beans/black | |
75 | f beans/borlotti beans/borlotti |
|
106 | f beans/borlotti beans/borlotti | |
76 | f beans/kidney beans/kidney |
|
107 | f beans/kidney beans/kidney | |
77 | f beans/navy beans/navy |
|
108 | f beans/navy beans/navy | |
78 | f beans/pinto beans/pinto |
|
109 | f beans/pinto beans/pinto | |
79 | f beans/turtle beans/turtle |
|
110 | f beans/turtle beans/turtle | |
|
111 | ||||
|
112 | hg debugwalk glob:mammals/../beans/b* | |||
80 | f beans/black beans/black |
|
113 | f beans/black beans/black | |
81 | f beans/borlotti beans/borlotti |
|
114 | f beans/borlotti beans/borlotti | |
|
115 | ||||
|
116 | hg debugwalk -X*/Procyonidae mammals | |||
82 | f mammals/skunk mammals/skunk |
|
117 | f mammals/skunk mammals/skunk | |
|
118 | ||||
|
119 | hg debugwalk path:mammals | |||
83 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
|
120 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |
84 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
121 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
85 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
122 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
86 | f mammals/skunk mammals/skunk |
|
123 | f mammals/skunk mammals/skunk | |
|
124 | ||||
|
125 | hg debugwalk .. | |||
87 | abort: .. not under root |
|
126 | abort: .. not under root | |
|
127 | ||||
|
128 | hg debugwalk beans/../.. | |||
88 | abort: beans/../.. not under root |
|
129 | abort: beans/../.. not under root | |
|
130 | ||||
|
131 | hg debugwalk .hg | |||
89 | abort: path contains illegal component: .hg |
|
132 | abort: path contains illegal component: .hg | |
90 |
|
133 | |||
|
134 | ||||
|
135 | hg debugwalk beans/../.hg | |||
91 | abort: path contains illegal component: .hg |
|
136 | abort: path contains illegal component: .hg | |
92 |
|
137 | |||
|
138 | ||||
|
139 | hg debugwalk beans/../.hg/data | |||
93 | abort: path contains illegal component: .hg/data |
|
140 | abort: path contains illegal component: .hg/data | |
94 |
|
141 | |||
|
142 | ||||
|
143 | hg debugwalk beans/.hg | |||
95 | beans/.hg: No such file or directory |
|
144 | beans/.hg: No such file or directory | |
|
145 | ||||
|
146 | hg debugwalk glob:* | |||
96 | f fennel fennel |
|
147 | f fennel fennel | |
97 | f fenugreek fenugreek |
|
148 | f fenugreek fenugreek | |
98 | f fiddlehead fiddlehead |
|
149 | f fiddlehead fiddlehead | |
99 | f glob:glob glob:glob |
|
150 | f glob:glob glob:glob | |
|
151 | ||||
|
152 | hg debugwalk re:.*[kb]$ | |||
100 | f beans/black beans/black |
|
153 | f beans/black beans/black | |
101 | f fenugreek fenugreek |
|
154 | f fenugreek fenugreek | |
102 | f glob:glob glob:glob |
|
155 | f glob:glob glob:glob | |
103 | f mammals/skunk mammals/skunk |
|
156 | f mammals/skunk mammals/skunk | |
|
157 | ||||
|
158 | hg debugwalk path:beans/black | |||
104 | f beans/black beans/black exact |
|
159 | f beans/black beans/black exact | |
|
160 | ||||
|
161 | hg debugwalk path:beans//black | |||
105 | f beans/black beans/black exact |
|
162 | f beans/black beans/black exact | |
|
163 | ||||
|
164 | hg debugwalk relglob:Procyonidae | |||
106 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
|
165 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |
107 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
166 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
108 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
167 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
|
168 | ||||
|
169 | hg debugwalk relglob:Procyonidae/ fennel | |||
109 | f fennel fennel exact |
|
170 | f fennel fennel exact | |
110 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
|
171 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |
111 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
172 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
112 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
173 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
|
174 | ||||
|
175 | hg debugwalk beans glob:beans/* | |||
113 | f beans/black beans/black |
|
176 | f beans/black beans/black | |
114 | f beans/borlotti beans/borlotti |
|
177 | f beans/borlotti beans/borlotti | |
115 | f beans/kidney beans/kidney |
|
178 | f beans/kidney beans/kidney | |
116 | f beans/navy beans/navy |
|
179 | f beans/navy beans/navy | |
117 | f beans/pinto beans/pinto |
|
180 | f beans/pinto beans/pinto | |
118 | f beans/turtle beans/turtle |
|
181 | f beans/turtle beans/turtle | |
|
182 | ||||
|
183 | hg debugwalk glob:mamm** | |||
119 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
|
184 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |
120 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
185 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
121 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
186 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
122 | f mammals/skunk mammals/skunk |
|
187 | f mammals/skunk mammals/skunk | |
|
188 | ||||
|
189 | hg debugwalk glob:mamm** fennel | |||
123 | f fennel fennel exact |
|
190 | f fennel fennel exact | |
124 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle |
|
191 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |
125 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi |
|
192 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |
126 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon |
|
193 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |
127 | f mammals/skunk mammals/skunk |
|
194 | f mammals/skunk mammals/skunk | |
|
195 | ||||
|
196 | hg debugwalk glob:j* | |||
|
197 | ||||
|
198 | hg debugwalk NOEXIST | |||
128 | NOEXIST: No such file or directory |
|
199 | NOEXIST: No such file or directory | |
|
200 | ||||
|
201 | hg debugwalk fifo | |||
129 | fifo: unsupported file type (type is fifo) |
|
202 | fifo: unsupported file type (type is fifo) | |
|
203 | ||||
|
204 | hg debugwalk fenugreek | |||
130 | m fenugreek fenugreek exact |
|
205 | m fenugreek fenugreek exact | |
|
206 | ||||
|
207 | hg debugwalk fenugreek | |||
131 | m fenugreek fenugreek exact |
|
208 | m fenugreek fenugreek exact | |
|
209 | ||||
|
210 | hg debugwalk new | |||
132 | f new new exact |
|
211 | f new new exact | |
|
212 |
General Comments 0
You need to be logged in to leave comments.
Login now