##// END OF EJS Templates
test-command-template: improve test coverage
TK Soh -
r4353:5e857d72 default
parent child Browse files
Show More
@@ -19,6 +19,12 echo c >> c
19 hg commit -m 'no user, no domain' -d '1300000 0' -u 'person'
19 hg commit -m 'no user, no domain' -d '1300000 0' -u 'person'
20 echo foo > .hg/branch
20 echo foo > .hg/branch
21 hg commit -m 'new branch' -d '1400000 0' -u 'person'
21 hg commit -m 'new branch' -d '1400000 0' -u 'person'
22 hg co -q 3
23 echo other 4 >> d
24 hg add d
25 hg commit -m 'new head' -d '1500000 0' -u 'person'
26 hg merge -q
27 hg commit -m 'merge' -d '1500001 0' -u 'person'
22
28
23 # make sure user/global hgrc does not affect tests
29 # make sure user/global hgrc does not affect tests
24 echo '[ui]' > .hg/hgrc
30 echo '[ui]' > .hg/hgrc
@@ -5,7 +5,13
5 # revision with no copies (used to print a traceback)
5 # revision with no copies (used to print a traceback)
6
6
7 # compact style works
7 # compact style works
8 4[tip] 32a18f097fcc 1970-01-17 04:53 +0000 person
8 6[tip]:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
9 merge
10
11 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
12 new head
13
14 4 32a18f097fcc 1970-01-17 04:53 +0000 person
9 new branch
15 new branch
10
16
11 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
17 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -20,7 +26,13 1 b608e9d1a3f0 1970-01-13 17:33 +000
20 0 1e4e1b8f71e0 1970-01-12 13:46 +0000 user
26 0 1e4e1b8f71e0 1970-01-12 13:46 +0000 user
21 line 1
27 line 1
22
28
23 4[tip] 32a18f097fcc 1970-01-17 04:53 +0000 person
29 6[tip]:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
30 merge
31
32 5:3 13207e5a10d9 1970-01-18 08:40 +0000 person
33 new head
34
35 4 32a18f097fcc 1970-01-17 04:53 +0000 person
24 new branch
36 new branch
25
37
26 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
38 3 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -35,7 +47,13 1 b608e9d1a3f0 1970-01-13 17:33 +000
35 0 1e4e1b8f71e0 1970-01-12 13:46 +0000 user
47 0 1e4e1b8f71e0 1970-01-12 13:46 +0000 user
36 line 1
48 line 1
37
49
38 4[tip]:3,-1 32a18f097fcc 1970-01-17 04:53 +0000 person
50 6[tip]:5,4 c7b487c6c50e 1970-01-18 08:40 +0000 person
51 merge
52
53 5:3,-1 13207e5a10d9 1970-01-18 08:40 +0000 person
54 new head
55
56 4:3,-1 32a18f097fcc 1970-01-17 04:53 +0000 person
39 new branch
57 new branch
40
58
41 3:2,-1 10e46f2dcbf4 1970-01-16 01:06 +0000 person
59 3:2,-1 10e46f2dcbf4 1970-01-16 01:06 +0000 person
@@ -59,22 +77,35 abort: ./t: no key named 'changeset'
59 # error if include fails
77 # error if include fails
60 abort: template file ./q: Permission denied
78 abort: template file ./q: Permission denied
61 # include works
79 # include works
80 6
81 5
62 4
82 4
63 3
83 3
64 2
84 2
65 1
85 1
66 0
86 0
67 # ui.style works
87 # ui.style works
88 6
89 5
68 4
90 4
69 3
91 3
70 2
92 2
71 1
93 1
72 0
94 0
73 # issue338
95 # issue338
96 1970-01-18 person <person>
97
98 * merge
99 [c7b487c6c50e] [tip]
100
101 * d:
102 new head
103 [13207e5a10d9]
104
74 1970-01-17 person <person>
105 1970-01-17 person <person>
75
106
76 * new branch
107 * new branch
77 [32a18f097fcc] [tip]
108 [32a18f097fcc]
78
109
79 1970-01-16 person <person>
110 1970-01-16 person <person>
80
111
@@ -105,49 +136,69 1970-01-12 User Name <user@hostname>
105 # keys work
136 # keys work
106 author: person
137 author: person
107 author: person
138 author: person
139 author: person
140 author: person
108 author: other@place
141 author: other@place
109 author: A. N. Other <other@place>
142 author: A. N. Other <other@place>
110 author: User Name <user@hostname>
143 author: User Name <user@hostname>
111 author--verbose: person
144 author--verbose: person
112 author--verbose: person
145 author--verbose: person
146 author--verbose: person
147 author--verbose: person
113 author--verbose: other@place
148 author--verbose: other@place
114 author--verbose: A. N. Other <other@place>
149 author--verbose: A. N. Other <other@place>
115 author--verbose: User Name <user@hostname>
150 author--verbose: User Name <user@hostname>
116 author--debug: person
151 author--debug: person
117 author--debug: person
152 author--debug: person
153 author--debug: person
154 author--debug: person
118 author--debug: other@place
155 author--debug: other@place
119 author--debug: A. N. Other <other@place>
156 author--debug: A. N. Other <other@place>
120 author--debug: User Name <user@hostname>
157 author--debug: User Name <user@hostname>
158 branches:
159 branches:
121 branches: foo
160 branches: foo
122 branches:
161 branches:
123 branches:
162 branches:
124 branches:
163 branches:
125 branches:
164 branches:
165 branches--verbose:
166 branches--verbose:
126 branches--verbose: foo
167 branches--verbose: foo
127 branches--verbose:
168 branches--verbose:
128 branches--verbose:
169 branches--verbose:
129 branches--verbose:
170 branches--verbose:
130 branches--verbose:
171 branches--verbose:
172 branches--debug:
173 branches--debug:
131 branches--debug: foo
174 branches--debug: foo
132 branches--debug:
175 branches--debug:
133 branches--debug:
176 branches--debug:
134 branches--debug:
177 branches--debug:
135 branches--debug:
178 branches--debug:
179 date: 1500001.00
180 date: 1500000.00
136 date: 1400000.00
181 date: 1400000.00
137 date: 1300000.00
182 date: 1300000.00
138 date: 1200000.00
183 date: 1200000.00
139 date: 1100000.00
184 date: 1100000.00
140 date: 1000000.00
185 date: 1000000.00
186 date--verbose: 1500001.00
187 date--verbose: 1500000.00
141 date--verbose: 1400000.00
188 date--verbose: 1400000.00
142 date--verbose: 1300000.00
189 date--verbose: 1300000.00
143 date--verbose: 1200000.00
190 date--verbose: 1200000.00
144 date--verbose: 1100000.00
191 date--verbose: 1100000.00
145 date--verbose: 1000000.00
192 date--verbose: 1000000.00
193 date--debug: 1500001.00
194 date--debug: 1500000.00
146 date--debug: 1400000.00
195 date--debug: 1400000.00
147 date--debug: 1300000.00
196 date--debug: 1300000.00
148 date--debug: 1200000.00
197 date--debug: 1200000.00
149 date--debug: 1100000.00
198 date--debug: 1100000.00
150 date--debug: 1000000.00
199 date--debug: 1000000.00
200 desc: merge
201 desc: new head
151 desc: new branch
202 desc: new branch
152 desc: no user, no domain
203 desc: no user, no domain
153 desc: no person
204 desc: no person
@@ -157,6 +208,8 other 2
157 other 3
208 other 3
158 desc: line 1
209 desc: line 1
159 line 2
210 line 2
211 desc--verbose: merge
212 desc--verbose: new head
160 desc--verbose: new branch
213 desc--verbose: new branch
161 desc--verbose: no user, no domain
214 desc--verbose: no user, no domain
162 desc--verbose: no person
215 desc--verbose: no person
@@ -166,6 +219,8 other 2
166 other 3
219 other 3
167 desc--verbose: line 1
220 desc--verbose: line 1
168 line 2
221 line 2
222 desc--debug: merge
223 desc--debug: new head
169 desc--debug: new branch
224 desc--debug: new branch
170 desc--debug: no user, no domain
225 desc--debug: no user, no domain
171 desc--debug: no person
226 desc--debug: no person
@@ -180,12 +235,18 file_adds:
180 file_adds:
235 file_adds:
181 file_adds:
236 file_adds:
182 file_adds:
237 file_adds:
238 file_adds:
239 file_adds:
240 file_adds--verbose:
241 file_adds--verbose:
183 file_adds--verbose:
242 file_adds--verbose:
184 file_adds--verbose:
243 file_adds--verbose:
185 file_adds--verbose:
244 file_adds--verbose:
186 file_adds--verbose:
245 file_adds--verbose:
187 file_adds--verbose:
246 file_adds--verbose:
188 file_adds--debug:
247 file_adds--debug:
248 file_adds--debug: d
249 file_adds--debug:
189 file_adds--debug:
250 file_adds--debug:
190 file_adds--debug: c
251 file_adds--debug: c
191 file_adds--debug: b
252 file_adds--debug: b
@@ -195,27 +256,39 file_dels:
195 file_dels:
256 file_dels:
196 file_dels:
257 file_dels:
197 file_dels:
258 file_dels:
259 file_dels:
260 file_dels:
198 file_dels--verbose:
261 file_dels--verbose:
199 file_dels--verbose:
262 file_dels--verbose:
200 file_dels--verbose:
263 file_dels--verbose:
201 file_dels--verbose:
264 file_dels--verbose:
202 file_dels--verbose:
265 file_dels--verbose:
266 file_dels--verbose:
267 file_dels--verbose:
268 file_dels--debug:
269 file_dels--debug:
203 file_dels--debug:
270 file_dels--debug:
204 file_dels--debug:
271 file_dels--debug:
205 file_dels--debug:
272 file_dels--debug:
206 file_dels--debug:
273 file_dels--debug:
207 file_dels--debug:
274 file_dels--debug:
208 files:
275 files:
276 files: d
277 files:
209 files: c
278 files: c
210 files: c
279 files: c
211 files: b
280 files: b
212 files: a
281 files: a
213 files--verbose:
282 files--verbose:
283 files--verbose: d
284 files--verbose:
214 files--verbose: c
285 files--verbose: c
215 files--verbose: c
286 files--verbose: c
216 files--verbose: b
287 files--verbose: b
217 files--verbose: a
288 files--verbose: a
218 files--debug:
289 files--debug:
290 files--debug:
291 files--debug:
219 files--debug: c
292 files--debug: c
220 files--debug:
293 files--debug:
221 files--debug:
294 files--debug:
@@ -225,56 +298,80 manifest:
225 manifest:
298 manifest:
226 manifest:
299 manifest:
227 manifest:
300 manifest:
301 manifest:
302 manifest:
228 manifest--verbose:
303 manifest--verbose:
229 manifest--verbose:
304 manifest--verbose:
230 manifest--verbose:
305 manifest--verbose:
231 manifest--verbose:
306 manifest--verbose:
232 manifest--verbose:
307 manifest--verbose:
308 manifest--verbose:
309 manifest--verbose:
310 manifest--debug: 6:91015e9dbdd76a6791085d12b0a0ec7fcd22ffbf
311 manifest--debug: 5:4dc3def4f9b4c6e8de820f6ee74737f91e96a216
233 manifest--debug: 4:90ae8dda64e1a876c792bccb9af66284f6018363
312 manifest--debug: 4:90ae8dda64e1a876c792bccb9af66284f6018363
234 manifest--debug: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
313 manifest--debug: 3:cb5a1327723bada42f117e4c55a303246eaf9ccc
235 manifest--debug: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
314 manifest--debug: 2:6e0e82995c35d0d57a52aca8da4e56139e06b4b1
236 manifest--debug: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
315 manifest--debug: 1:4e8d705b1e53e3f9375e0e60dc7b525d8211fe55
237 manifest--debug: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
316 manifest--debug: 0:a0c8bcbbb45c63b90b70ad007bf38961f64f2af0
317 node: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
318 node: 13207e5a10d9fd28ec424934298e176197f2c67f
238 node: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
319 node: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
239 node: 10e46f2dcbf4823578cf180f33ecf0b957964c47
320 node: 10e46f2dcbf4823578cf180f33ecf0b957964c47
240 node: 97054abb4ab824450e9164180baf491ae0078465
321 node: 97054abb4ab824450e9164180baf491ae0078465
241 node: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
322 node: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
242 node: 1e4e1b8f71e05681d422154f5421e385fec3454f
323 node: 1e4e1b8f71e05681d422154f5421e385fec3454f
324 node--verbose: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
325 node--verbose: 13207e5a10d9fd28ec424934298e176197f2c67f
243 node--verbose: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
326 node--verbose: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
244 node--verbose: 10e46f2dcbf4823578cf180f33ecf0b957964c47
327 node--verbose: 10e46f2dcbf4823578cf180f33ecf0b957964c47
245 node--verbose: 97054abb4ab824450e9164180baf491ae0078465
328 node--verbose: 97054abb4ab824450e9164180baf491ae0078465
246 node--verbose: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
329 node--verbose: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
247 node--verbose: 1e4e1b8f71e05681d422154f5421e385fec3454f
330 node--verbose: 1e4e1b8f71e05681d422154f5421e385fec3454f
331 node--debug: c7b487c6c50ef1cf464cafdc4f4f5e615fc5999f
332 node--debug: 13207e5a10d9fd28ec424934298e176197f2c67f
248 node--debug: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
333 node--debug: 32a18f097fcccf76ef282f62f8a85b3adf8d13c4
249 node--debug: 10e46f2dcbf4823578cf180f33ecf0b957964c47
334 node--debug: 10e46f2dcbf4823578cf180f33ecf0b957964c47
250 node--debug: 97054abb4ab824450e9164180baf491ae0078465
335 node--debug: 97054abb4ab824450e9164180baf491ae0078465
251 node--debug: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
336 node--debug: b608e9d1a3f0273ccf70fb85fd6866b3482bf965
252 node--debug: 1e4e1b8f71e05681d422154f5421e385fec3454f
337 node--debug: 1e4e1b8f71e05681d422154f5421e385fec3454f
338 parents: 5:13207e5a10d9 4:32a18f097fcc
339 parents: 3:10e46f2dcbf4
253 parents:
340 parents:
254 parents:
341 parents:
255 parents:
342 parents:
256 parents:
343 parents:
257 parents:
344 parents:
345 parents--verbose: 5:13207e5a10d9 4:32a18f097fcc
346 parents--verbose: 3:10e46f2dcbf4
258 parents--verbose:
347 parents--verbose:
259 parents--verbose:
348 parents--verbose:
260 parents--verbose:
349 parents--verbose:
261 parents--verbose:
350 parents--verbose:
262 parents--verbose:
351 parents--verbose:
352 parents--debug: 5:13207e5a10d9fd28ec424934298e176197f2c67f 4:32a18f097fcccf76ef282f62f8a85b3adf8d13c4
353 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
263 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
354 parents--debug: 3:10e46f2dcbf4823578cf180f33ecf0b957964c47 -1:0000000000000000000000000000000000000000
264 parents--debug: 2:97054abb4ab824450e9164180baf491ae0078465 -1:0000000000000000000000000000000000000000
355 parents--debug: 2:97054abb4ab824450e9164180baf491ae0078465 -1:0000000000000000000000000000000000000000
265 parents--debug: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965 -1:0000000000000000000000000000000000000000
356 parents--debug: 1:b608e9d1a3f0273ccf70fb85fd6866b3482bf965 -1:0000000000000000000000000000000000000000
266 parents--debug: 0:1e4e1b8f71e05681d422154f5421e385fec3454f -1:0000000000000000000000000000000000000000
357 parents--debug: 0:1e4e1b8f71e05681d422154f5421e385fec3454f -1:0000000000000000000000000000000000000000
267 parents--debug: -1:0000000000000000000000000000000000000000 -1:0000000000000000000000000000000000000000
358 parents--debug: -1:0000000000000000000000000000000000000000 -1:0000000000000000000000000000000000000000
359 rev: 6
360 rev: 5
268 rev: 4
361 rev: 4
269 rev: 3
362 rev: 3
270 rev: 2
363 rev: 2
271 rev: 1
364 rev: 1
272 rev: 0
365 rev: 0
366 rev--verbose: 6
367 rev--verbose: 5
273 rev--verbose: 4
368 rev--verbose: 4
274 rev--verbose: 3
369 rev--verbose: 3
275 rev--verbose: 2
370 rev--verbose: 2
276 rev--verbose: 1
371 rev--verbose: 1
277 rev--verbose: 0
372 rev--verbose: 0
373 rev--debug: 6
374 rev--debug: 5
278 rev--debug: 4
375 rev--debug: 4
279 rev--debug: 3
376 rev--debug: 3
280 rev--debug: 2
377 rev--debug: 2
@@ -285,52 +382,74 tags:
285 tags:
382 tags:
286 tags:
383 tags:
287 tags:
384 tags:
385 tags:
386 tags:
288 tags--verbose: tip
387 tags--verbose: tip
289 tags--verbose:
388 tags--verbose:
290 tags--verbose:
389 tags--verbose:
291 tags--verbose:
390 tags--verbose:
292 tags--verbose:
391 tags--verbose:
392 tags--verbose:
393 tags--verbose:
293 tags--debug: tip
394 tags--debug: tip
294 tags--debug:
395 tags--debug:
295 tags--debug:
396 tags--debug:
296 tags--debug:
397 tags--debug:
297 tags--debug:
398 tags--debug:
399 tags--debug:
400 tags--debug:
298 # filters work
401 # filters work
299
402
300
403
404
405
301 place
406 place
302 place
407 place
303 hostname
408 hostname
304 person
409 person
305 person
410 person
411 person
412 person
306 other
413 other
307 A. N. Other
414 A. N. Other
308 User Name
415 User Name
309 person
416 person
310 person
417 person
418 person
419 person
311 other
420 other
312 other
421 other
313 user
422 user
423 Sun Jan 18 08:40:01 1970 +0000
424 Sun Jan 18 08:40:00 1970 +0000
314 Sat Jan 17 04:53:20 1970 +0000
425 Sat Jan 17 04:53:20 1970 +0000
315 Fri Jan 16 01:06:40 1970 +0000
426 Fri Jan 16 01:06:40 1970 +0000
316 Wed Jan 14 21:20:00 1970 +0000
427 Wed Jan 14 21:20:00 1970 +0000
317 Tue Jan 13 17:33:20 1970 +0000
428 Tue Jan 13 17:33:20 1970 +0000
318 Mon Jan 12 13:46:40 1970 +0000
429 Mon Jan 12 13:46:40 1970 +0000
430 1970-01-18 08:40 +0000
431 1970-01-18 08:40 +0000
319 1970-01-17 04:53 +0000
432 1970-01-17 04:53 +0000
320 1970-01-16 01:06 +0000
433 1970-01-16 01:06 +0000
321 1970-01-14 21:20 +0000
434 1970-01-14 21:20 +0000
322 1970-01-13 17:33 +0000
435 1970-01-13 17:33 +0000
323 1970-01-12 13:46 +0000
436 1970-01-12 13:46 +0000
437 Sun, 18 Jan 1970 08:40:01 +0000
438 Sun, 18 Jan 1970 08:40:00 +0000
324 Sat, 17 Jan 1970 04:53:20 +0000
439 Sat, 17 Jan 1970 04:53:20 +0000
325 Fri, 16 Jan 1970 01:06:40 +0000
440 Fri, 16 Jan 1970 01:06:40 +0000
326 Wed, 14 Jan 1970 21:20:00 +0000
441 Wed, 14 Jan 1970 21:20:00 +0000
327 Tue, 13 Jan 1970 17:33:20 +0000
442 Tue, 13 Jan 1970 17:33:20 +0000
328 Mon, 12 Jan 1970 13:46:40 +0000
443 Mon, 12 Jan 1970 13:46:40 +0000
444 merge
445 new head
329 new branch
446 new branch
330 no user, no domain
447 no user, no domain
331 no person
448 no person
332 other 1
449 other 1
333 line 1
450 line 1
451 c7b487c6c50e
452 13207e5a10d9
334 32a18f097fcc
453 32a18f097fcc
335 10e46f2dcbf4
454 10e46f2dcbf4
336 97054abb4ab8
455 97054abb4ab8
General Comments 0
You need to be logged in to leave comments. Login now