Debian Codegraph @

tests/test-mq-header-from.t

raw
1
2 $ echo "[extensions]" >> $HGRCPATH
3 $ echo "mq=" >> $HGRCPATH
4 $ echo "[diff]" >> $HGRCPATH
5 $ echo "nodates=true" >> $HGRCPATH
6 $ catlog() {
7 > cat .hg/patches/$1.patch | sed -e "s/^diff \-r [0-9a-f]* /diff -r ... /" \
8 > -e "s/^\(# Parent \).*/\1/"
9 > hg log --template "{rev}: {node|short} {desc} - {author}\n"
10 > }
11 $ runtest() {
12 > echo ==== init
13 > hg init a
14 > cd a
15 > hg qinit
16 >
17 >
18 > echo ==== qnew -U
19 > hg qnew -U 1.patch
20 > catlog 1
21 >
22 > echo ==== qref
23 > echo "1" >1
24 > hg add
25 > hg qref
26 > catlog 1
27 >
28 > echo ==== qref -u
29 > hg qref -u mary
30 > catlog 1
31 >
32 > echo ==== qnew
33 > hg qnew 2.patch
34 > echo "2" >2
35 > hg add
36 > hg qref
37 > catlog 2
38 >
39 > echo ==== qref -u
40 > hg qref -u jane
41 > catlog 2
42 >
43 >
44 > echo ==== qnew -U -m
45 > hg qnew -U -m "Three" 3.patch
46 > catlog 3
47 >
48 > echo ==== qref
49 > echo "3" >3
50 > hg add
51 > hg qref
52 > catlog 3
53 >
54 > echo ==== qref -m
55 > hg qref -m "Drei"
56 > catlog 3
57 >
58 > echo ==== qref -u
59 > hg qref -u mary
60 > catlog 3
61 >
62 > echo ==== qref -u -m
63 > hg qref -u maria -m "Three (again)"
64 > catlog 3
65 >
66 > echo ==== qnew -m
67 > hg qnew -m "Four" 4.patch
68 > echo "4" >4of t
69 > hg add
70 > hg qref
71 > catlog 4
72 >
73 > echo ==== qref -u
74 > hg qref -u jane
75 > catlog 4
76 >
77 >
78 > echo ==== qnew with HG header
79 > hg qnew --config 'mq.plain=true' 5.patch
80 > hg qpop
81 > echo "# HG changeset patch" >>.hg/patches/5.patch
82 > echo "# User johndoe" >>.hg/patches/5.patch
83 > hg qpush 2>&1 | grep 'now at'
84 > catlog 5
85 >
86 > echo ==== hg qref
87 > echo "5" >5
88 > hg add
89 > hg qref
90 > catlog 5
91 >
92 > echo ==== hg qref -U
93 > hg qref -U
94 > catlog 5
95 >
96 > echo ==== hg qref -u
97 > hg qref -u johndeere
98 > catlog 5
99 >
100 >
101 > echo ==== qnew with plain header
102 > hg qnew --config 'mq.plain=true' -U 6.patch
103 > hg qpop
104 > hg qpush 2>&1 | grep 'now at'
105 > catlog 6
106 >
107 > echo ==== hg qref
108 > echo "6" >6
109 > hg add
110 > hg qref
111 > catlog 6
112 >
113 > echo ==== hg qref -U
114 > hg qref -U
115 > catlog 6
116 >
117 > echo ==== hg qref -u
118 > hg qref -u johndeere
119 > catlog 6
120 >
121 >
122 > echo ==== "qpop -a / qpush -a"
123 > hg qpop -a
124 > hg qpush -a
125 > hg log --template "{rev}: {node|short} {desc} - {author}\n"
126 > }
127
128 ======= plain headers
129
130 $ echo "[mq]" >> $HGRCPATH
131 $ echo "plain=true" >> $HGRCPATH
132 $ mkdir sandbox
133 $ (cd sandbox ; runtest)
134 ==== init
135 ==== qnew -U
136 From: test
137
138 0: a054644889e5 [mq]: 1.patch - test
139 ==== qref
140 adding 1
141 From: test
142
143 diff -r ... 1
144 --- /dev/null
145 +++ b/1
146 @@ -0,0 +1,1 @@
147 +1
148 0: 2905f1e46ee0 [mq]: 1.patch - test
149 ==== qref -u
150 From: mary
151
152 diff -r ... 1
153 --- /dev/null
154 +++ b/1
155 @@ -0,0 +1,1 @@
156 +1
157 0: 3682f830e656 [mq]: 1.patch - mary
158 ==== qnew
159 adding 2
160 diff -r ... 2
161 --- /dev/null
162 +++ b/2
163 @@ -0,0 +1,1 @@
164 +2
165 1: 527f98a12a7a [mq]: 2.patch - test
166 0: 3682f830e656 [mq]: 1.patch - mary
167 ==== qref -u
168 From: jane
169
170 diff -r ... 2
171 --- /dev/null
172 +++ b/2
173 @@ -0,0 +1,1 @@
174 +2
175 1: a425cde5f493 [mq]: 2.patch - jane
176 0: 3682f830e656 [mq]: 1.patch - mary
177 ==== qnew -U -m
178 From: test
179
180 Three
181
182 2: 0ffa16a9088e Three - test
183 1: a425cde5f493 [mq]: 2.patch - jane
184 0: 3682f830e656 [mq]: 1.patch - mary
185 ==== qref
186 adding 3
187 From: test
188
189 Three
190
191 diff -r ... 3
192 --- /dev/null
193 +++ b/3
194 @@ -0,0 +1,1 @@
195 +3
196 2: 83f1290c6086 Three - test
197 1: a425cde5f493 [mq]: 2.patch - jane
198 0: 3682f830e656 [mq]: 1.patch - mary
199 ==== qref -m
200 From: test
201
202 Drei
203
204 diff -r ... 3
205 --- /dev/null
206 +++ b/3
207 @@ -0,0 +1,1 @@
208 +3
209 2: b0d856328d4d Drei - test
210 1: a425cde5f493 [mq]: 2.patch - jane
211 0: 3682f830e656 [mq]: 1.patch - mary
212 ==== qref -u
213 From: mary
214
215 Drei
216
217 diff -r ... 3
218 --- /dev/null
219 +++ b/3
220 @@ -0,0 +1,1 @@
221 +3
222 2: bb9d4b28e6a6 Drei - mary
223 1: a425cde5f493 [mq]: 2.patch - jane
224 0: 3682f830e656 [mq]: 1.patch - mary
225 ==== qref -u -m
226 From: maria
227
228 Three (again)
229
230 diff -r ... 3
231 --- /dev/null
232 +++ b/3
233 @@ -0,0 +1,1 @@
234 +3
235 2: a6686ee84fc3 Three (again) - maria
236 1: a425cde5f493 [mq]: 2.patch - jane
237 0: 3682f830e656 [mq]: 1.patch - mary
238 ==== qnew -m
239 adding 4of
240 Four
241
242 diff -r ... 4of
243 --- /dev/null
244 +++ b/4of
245 @@ -0,0 +1,1 @@
246 +4 t
247 3: b9f922d0da40 Four - test
248 2: a6686ee84fc3 Three (again) - maria
249 1: a425cde5f493 [mq]: 2.patch - jane
250 0: 3682f830e656 [mq]: 1.patch - mary
251 ==== qref -u
252 From: jane
253
254 Four
255
256 diff -r ... 4of
257 --- /dev/null
258 +++ b/4of
259 @@ -0,0 +1,1 @@
260 +4 t
261 3: 0dfb3111e7ee Four - jane
262 2: a6686ee84fc3 Three (again) - maria
263 1: a425cde5f493 [mq]: 2.patch - jane
264 0: 3682f830e656 [mq]: 1.patch - mary
265 ==== qnew with HG header
266 popping 5.patch
267 now at: 4.patch
268 now at: 5.patch
269 # HG changeset patch
270 # User johndoe
271 4: 72bc4a0467ef imported patch 5.patch - johndoe
272 3: 0dfb3111e7ee Four - jane
273 2: a6686ee84fc3 Three (again) - maria
274 1: a425cde5f493 [mq]: 2.patch - jane
275 0: 3682f830e656 [mq]: 1.patch - mary
276 ==== hg qref
277 adding 5
278 # HG changeset patch
279 # User johndoe
280 # Parent
281
282 diff -r ... 5
283 --- /dev/null
284 +++ b/5
285 @@ -0,0 +1,1 @@
286 +5
287 4: ff5c06112e5a [mq]: 5.patch - johndoe
288 3: 0dfb3111e7ee Four - jane
289 2: a6686ee84fc3 Three (again) - maria
290 1: a425cde5f493 [mq]: 2.patch - jane
291 0: 3682f830e656 [mq]: 1.patch - mary
292 ==== hg qref -U
293 # HG changeset patch
294 # User test
295 # Parent
296
297 diff -r ... 5
298 --- /dev/null
299 +++ b/5
300 @@ -0,0 +1,1 @@
301 +5
302 4: c947416c22b1 [mq]: 5.patch - test
303 3: 0dfb3111e7ee Four - jane
304 2: a6686ee84fc3 Three (again) - maria
305 1: a425cde5f493 [mq]: 2.patch - jane
306 0: 3682f830e656 [mq]: 1.patch - mary
307 ==== hg qref -u
308 # HG changeset patch
309 # User johndeere
310 # Parent
311
312 diff -r ... 5
313 --- /dev/null
314 +++ b/5
315 @@ -0,0 +1,1 @@
316 +5
317 4: 1d898e201a22 [mq]: 5.patch - johndeere
318 3: 0dfb3111e7ee Four - jane
319 2: a6686ee84fc3 Three (again) - maria
320 1: a425cde5f493 [mq]: 2.patch - jane
321 0: 3682f830e656 [mq]: 1.patch - mary
322 ==== qnew with plain header
323 popping 6.patch
324 now at: 5.patch
325 now at: 6.patch
326 From: test
327
328 5: 7825a18ec839 imported patch 6.patch - test
329 4: 1d898e201a22 [mq]: 5.patch - johndeere
330 3: 0dfb3111e7ee Four - jane
331 2: a6686ee84fc3 Three (again) - maria
332 1: a425cde5f493 [mq]: 2.patch - jane
333 0: 3682f830e656 [mq]: 1.patch - mary
334 ==== hg qref
335 adding 6
336 From: test
337
338 diff -r ... 6
339 --- /dev/null
340 +++ b/6
341 @@ -0,0 +1,1 @@
342 +6
343 5: 09d19592680d [mq]: 6.patch - test
344 4: 1d898e201a22 [mq]: 5.patch - johndeere
345 3: 0dfb3111e7ee Four - jane
346 2: a6686ee84fc3 Three (again) - maria
347 1: a425cde5f493 [mq]: 2.patch - jane
348 0: 3682f830e656 [mq]: 1.patch - mary
349 ==== hg qref -U
350 From: test
351
352 diff -r ... 6
353 --- /dev/null
354 +++ b/6
355 @@ -0,0 +1,1 @@
356 +6
357 5: 09d19592680d [mq]: 6.patch - test
358 4: 1d898e201a22 [mq]: 5.patch - johndeere
359 3: 0dfb3111e7ee Four - jane
360 2: a6686ee84fc3 Three (again) - maria
361 1: a425cde5f493 [mq]: 2.patch - jane
362 0: 3682f830e656 [mq]: 1.patch - mary
363 ==== hg qref -u
364 From: johndeere
365
366 diff -r ... 6
367 --- /dev/null
368 +++ b/6
369 @@ -0,0 +1,1 @@
370 +6
371 5: 32641ee07196 [mq]: 6.patch - johndeere
372 4: 1d898e201a22 [mq]: 5.patch - johndeere
373 3: 0dfb3111e7ee Four - jane
374 2: a6686ee84fc3 Three (again) - maria
375 1: a425cde5f493 [mq]: 2.patch - jane
376 0: 3682f830e656 [mq]: 1.patch - mary
377 ==== qpop -a / qpush -a
378 popping 6.patch
379 popping 5.patch
380 popping 4.patch
381 popping 3.patch
382 popping 2.patch
383 popping 1.patch
384 patch queue now empty
385 applying 1.patch
386 applying 2.patch
387 applying 3.patch
388 applying 4.patch
389 applying 5.patch
390 applying 6.patch
391 now at: 6.patch
392 5: 1fb083c80457 imported patch 6.patch - johndeere
393 4: 7e96e969691d imported patch 5.patch - johndeere
394 3: c7147533d3cd Four - jane
395 2: b383d04401ea Three (again) - maria
396 1: fac2da4efc3c imported patch 2.patch - jane
397 0: b6e237e8771b imported patch 1.patch - mary
398 $ rm -r sandbox
399
400 ======= hg headers
401
402 $ echo "plain=false" >> $HGRCPATH
403 $ mkdir sandbox
404 $ (cd sandbox ; runtest)
405 ==== init
406 ==== qnew -U
407 # HG changeset patch
408 # User test
409 # Parent
410
411 0: a054644889e5 [mq]: 1.patch - test
412 ==== qref
413 adding 1
414 # HG changeset patch
415 # User test
416 # Parent
417
418 diff -r ... 1
419 --- /dev/null
420 +++ b/1
421 @@ -0,0 +1,1 @@
422 +1
423 0: 2905f1e46ee0 [mq]: 1.patch - test
424 ==== qref -u
425 # HG changeset patch
426 # User mary
427 # Parent
428
429 diff -r ... 1
430 --- /dev/null
431 +++ b/1
432 @@ -0,0 +1,1 @@
433 +1
434 0: 3682f830e656 [mq]: 1.patch - mary
435 ==== qnew
436 adding 2
437 # HG changeset patch
438 # Parent
439
440 diff -r ... 2
441 --- /dev/null
442 +++ b/2
443 @@ -0,0 +1,1 @@
444 +2
445 1: 527f98a12a7a [mq]: 2.patch - test
446 0: 3682f830e656 [mq]: 1.patch - mary
447 ==== qref -u
448 # HG changeset patch
449 # User jane
450 # Parent
451
452 diff -r ... 2
453 --- /dev/null
454 +++ b/2
455 @@ -0,0 +1,1 @@
456 +2
457 1: a425cde5f493 [mq]: 2.patch - jane
458 0: 3682f830e656 [mq]: 1.patch - mary
459 ==== qnew -U -m
460 # HG changeset patch
461 # User test
462 # Parent
463 Three
464
465 2: 0ffa16a9088e Three - test
466 1: a425cde5f493 [mq]: 2.patch - jane
467 0: 3682f830e656 [mq]: 1.patch - mary
468 ==== qref
469 adding 3
470 # HG changeset patch
471 # User test
472 # Parent
473 Three
474
475 diff -r ... 3
476 --- /dev/null
477 +++ b/3
478 @@ -0,0 +1,1 @@
479 +3
480 2: 83f1290c6086 Three - test
481 1: a425cde5f493 [mq]: 2.patch - jane
482 0: 3682f830e656 [mq]: 1.patch - mary
483 ==== qref -m
484 # HG changeset patch
485 # User test
486 # Parent
487 Drei
488
489 diff -r ... 3
490 --- /dev/null
491 +++ b/3
492 @@ -0,0 +1,1 @@
493 +3
494 2: b0d856328d4d Drei - test
495 1: a425cde5f493 [mq]: 2.patch - jane
496 0: 3682f830e656 [mq]: 1.patch - mary
497 ==== qref -u
498 # HG changeset patch
499 # User mary
500 # Parent
501 Drei
502
503 diff -r ... 3
504 --- /dev/null
505 +++ b/3
506 @@ -0,0 +1,1 @@
507 +3
508 2: bb9d4b28e6a6 Drei - mary
509 1: a425cde5f493 [mq]: 2.patch - jane
510 0: 3682f830e656 [mq]: 1.patch - mary
511 ==== qref -u -m
512 # HG changeset patch
513 # User maria
514 # Parent
515 Three (again)
516
517 diff -r ... 3
518 --- /dev/null
519 +++ b/3
520 @@ -0,0 +1,1 @@
521 +3
522 2: a6686ee84fc3 Three (again) - maria
523 1: a425cde5f493 [mq]: 2.patch - jane
524 0: 3682f830e656 [mq]: 1.patch - mary
525 ==== qnew -m
526 adding 4of
527 # HG changeset patch
528 # Parent
529 Four
530
531 diff -r ... 4of
532 --- /dev/null
533 +++ b/4of
534 @@ -0,0 +1,1 @@
535 +4 t
536 3: b9f922d0da40 Four - test
537 2: a6686ee84fc3 Three (again) - maria
538 1: a425cde5f493 [mq]: 2.patch - jane
539 0: 3682f830e656 [mq]: 1.patch - mary
540 ==== qref -u
541 # HG changeset patch
542 # User jane
543 # Parent
544 Four
545
546 diff -r ... 4of
547 --- /dev/null
548 +++ b/4of
549 @@ -0,0 +1,1 @@
550 +4 t
551 3: 0dfb3111e7ee Four - jane
552 2: a6686ee84fc3 Three (again) - maria
553 1: a425cde5f493 [mq]: 2.patch - jane
554 0: 3682f830e656 [mq]: 1.patch - mary
555 ==== qnew with HG header
556 popping 5.patch
557 now at: 4.patch
558 now at: 5.patch
559 # HG changeset patch
560 # User johndoe
561 4: 72bc4a0467ef imported patch 5.patch - johndoe
562 3: 0dfb3111e7ee Four - jane
563 2: a6686ee84fc3 Three (again) - maria
564 1: a425cde5f493 [mq]: 2.patch - jane
565 0: 3682f830e656 [mq]: 1.patch - mary
566 ==== hg qref
567 adding 5
568 # HG changeset patch
569 # User johndoe
570 # Parent
571
572 diff -r ... 5
573 --- /dev/null
574 +++ b/5
575 @@ -0,0 +1,1 @@
576 +5
577 4: ff5c06112e5a [mq]: 5.patch - johndoe
578 3: 0dfb3111e7ee Four - jane
579 2: a6686ee84fc3 Three (again) - maria
580 1: a425cde5f493 [mq]: 2.patch - jane
581 0: 3682f830e656 [mq]: 1.patch - mary
582 ==== hg qref -U
583 # HG changeset patch
584 # User test
585 # Parent
586
587 diff -r ... 5
588 --- /dev/null
589 +++ b/5
590 @@ -0,0 +1,1 @@
591 +5
592 4: c947416c22b1 [mq]: 5.patch - test
593 3: 0dfb3111e7ee Four - jane
594 2: a6686ee84fc3 Three (again) - maria
595 1: a425cde5f493 [mq]: 2.patch - jane
596 0: 3682f830e656 [mq]: 1.patch - mary
597 ==== hg qref -u
598 # HG changeset patch
599 # User johndeere
600 # Parent
601
602 diff -r ... 5
603 --- /dev/null
604 +++ b/5
605 @@ -0,0 +1,1 @@
606 +5
607 4: 1d898e201a22 [mq]: 5.patch - johndeere
608 3: 0dfb3111e7ee Four - jane
609 2: a6686ee84fc3 Three (again) - maria
610 1: a425cde5f493 [mq]: 2.patch - jane
611 0: 3682f830e656 [mq]: 1.patch - mary
612 ==== qnew with plain header
613 popping 6.patch
614 now at: 5.patch
615 now at: 6.patch
616 From: test
617
618 5: 7825a18ec839 imported patch 6.patch - test
619 4: 1d898e201a22 [mq]: 5.patch - johndeere
620 3: 0dfb3111e7ee Four - jane
621 2: a6686ee84fc3 Three (again) - maria
622 1: a425cde5f493 [mq]: 2.patch - jane
623 0: 3682f830e656 [mq]: 1.patch - mary
624 ==== hg qref
625 adding 6
626 From: test
627
628 diff -r ... 6
629 --- /dev/null
630 +++ b/6
631 @@ -0,0 +1,1 @@
632 +6
633 5: 09d19592680d [mq]: 6.patch - test
634 4: 1d898e201a22 [mq]: 5.patch - johndeere
635 3: 0dfb3111e7ee Four - jane
636 2: a6686ee84fc3 Three (again) - maria
637 1: a425cde5f493 [mq]: 2.patch - jane
638 0: 3682f830e656 [mq]: 1.patch - mary
639 ==== hg qref -U
640 From: test
641
642 diff -r ... 6
643 --- /dev/null
644 +++ b/6
645 @@ -0,0 +1,1 @@
646 +6
647 5: 09d19592680d [mq]: 6.patch - test
648 4: 1d898e201a22 [mq]: 5.patch - johndeere
649 3: 0dfb3111e7ee Four - jane
650 2: a6686ee84fc3 Three (again) - maria
651 1: a425cde5f493 [mq]: 2.patch - jane
652 0: 3682f830e656 [mq]: 1.patch - mary
653 ==== hg qref -u
654 From: johndeere
655
656 diff -r ... 6
657 --- /dev/null
658 +++ b/6
659 @@ -0,0 +1,1 @@
660 +6
661 5: 32641ee07196 [mq]: 6.patch - johndeere
662 4: 1d898e201a22 [mq]: 5.patch - johndeere
663 3: 0dfb3111e7ee Four - jane
664 2: a6686ee84fc3 Three (again) - maria
665 1: a425cde5f493 [mq]: 2.patch - jane
666 0: 3682f830e656 [mq]: 1.patch - mary
667 ==== qpop -a / qpush -a
668 popping 6.patch
669 popping 5.patch
670 popping 4.patch
671 popping 3.patch
672 popping 2.patch
673 popping 1.patch
674 patch queue now empty
675 applying 1.patch
676 applying 2.patch
677 applying 3.patch
678 applying 4.patch
679 applying 5.patch
680 applying 6.patch
681 now at: 6.patch
682 5: 1fb083c80457 imported patch 6.patch - johndeere
683 4: 7e96e969691d imported patch 5.patch - johndeere
684 3: c7147533d3cd Four - jane
685 2: b383d04401ea Three (again) - maria
686 1: fac2da4efc3c imported patch 2.patch - jane
687 0: b6e237e8771b imported patch 1.patch - mary
688 $ rm -r sandbox
689 $ runtest
690 ==== init
691 ==== qnew -U
692 # HG changeset patch
693 # User test
694 # Parent
695
696 0: a054644889e5 [mq]: 1.patch - test
697 ==== qref
698 adding 1
699 # HG changeset patch
700 # User test
701 # Parent
702
703 diff -r ... 1
704 --- /dev/null
705 +++ b/1
706 @@ -0,0 +1,1 @@
707 +1
708 0: 2905f1e46ee0 [mq]: 1.patch - test
709 ==== qref -u
710 # HG changeset patch
711 # User mary
712 # Parent
713
714 diff -r ... 1
715 --- /dev/null
716 +++ b/1
717 @@ -0,0 +1,1 @@
718 +1
719 0: 3682f830e656 [mq]: 1.patch - mary
720 ==== qnew
721 adding 2
722 # HG changeset patch
723 # Parent
724
725 diff -r ... 2
726 --- /dev/null
727 +++ b/2
728 @@ -0,0 +1,1 @@
729 +2
730 1: 527f98a12a7a [mq]: 2.patch - test
731 0: 3682f830e656 [mq]: 1.patch - mary
732 ==== qref -u
733 # HG changeset patch
734 # User jane
735 # Parent
736
737 diff -r ... 2
738 --- /dev/null
739 +++ b/2
740 @@ -0,0 +1,1 @@
741 +2
742 1: a425cde5f493 [mq]: 2.patch - jane
743 0: 3682f830e656 [mq]: 1.patch - mary
744 ==== qnew -U -m
745 # HG changeset patch
746 # User test
747 # Parent
748 Three
749
750 2: 0ffa16a9088e Three - test
751 1: a425cde5f493 [mq]: 2.patch - jane
752 0: 3682f830e656 [mq]: 1.patch - mary
753 ==== qref
754 adding 3
755 # HG changeset patch
756 # User test
757 # Parent
758 Three
759
760 diff -r ... 3
761 --- /dev/null
762 +++ b/3
763 @@ -0,0 +1,1 @@
764 +3
765 2: 83f1290c6086 Three - test
766 1: a425cde5f493 [mq]: 2.patch - jane
767 0: 3682f830e656 [mq]: 1.patch - mary
768 ==== qref -m
769 # HG changeset patch
770 # User test
771 # Parent
772 Drei
773
774 diff -r ... 3
775 --- /dev/null
776 +++ b/3
777 @@ -0,0 +1,1 @@
778 +3
779 2: b0d856328d4d Drei - test
780 1: a425cde5f493 [mq]: 2.patch - jane
781 0: 3682f830e656 [mq]: 1.patch - mary
782 ==== qref -u
783 # HG changeset patch
784 # User mary
785 # Parent
786 Drei
787
788 diff -r ... 3
789 --- /dev/null
790 +++ b/3
791 @@ -0,0 +1,1 @@
792 +3
793 2: bb9d4b28e6a6 Drei - mary
794 1: a425cde5f493 [mq]: 2.patch - jane
795 0: 3682f830e656 [mq]: 1.patch - mary
796 ==== qref -u -m
797 # HG changeset patch
798 # User maria
799 # Parent
800 Three (again)
801
802 diff -r ... 3
803 --- /dev/null
804 +++ b/3
805 @@ -0,0 +1,1 @@
806 +3
807 2: a6686ee84fc3 Three (again) - maria
808 1: a425cde5f493 [mq]: 2.patch - jane
809 0: 3682f830e656 [mq]: 1.patch - mary
810 ==== qnew -m
811 adding 4of
812 # HG changeset patch
813 # Parent
814 Four
815
816 diff -r ... 4of
817 --- /dev/null
818 +++ b/4of
819 @@ -0,0 +1,1 @@
820 +4 t
821 3: b9f922d0da40 Four - test
822 2: a6686ee84fc3 Three (again) - maria
823 1: a425cde5f493 [mq]: 2.patch - jane
824 0: 3682f830e656 [mq]: 1.patch - mary
825 ==== qref -u
826 # HG changeset patch
827 # User jane
828 # Parent
829 Four
830
831 diff -r ... 4of
832 --- /dev/null
833 +++ b/4of
834 @@ -0,0 +1,1 @@
835 +4 t
836 3: 0dfb3111e7ee Four - jane
837 2: a6686ee84fc3 Three (again) - maria
838 1: a425cde5f493 [mq]: 2.patch - jane
839 0: 3682f830e656 [mq]: 1.patch - mary
840 ==== qnew with HG header
841 popping 5.patch
842 now at: 4.patch
843 now at: 5.patch
844 # HG changeset patch
845 # User johndoe
846 4: 72bc4a0467ef imported patch 5.patch - johndoe
847 3: 0dfb3111e7ee Four - jane
848 2: a6686ee84fc3 Three (again) - maria
849 1: a425cde5f493 [mq]: 2.patch - jane
850 0: 3682f830e656 [mq]: 1.patch - mary
851 ==== hg qref
852 adding 5
853 # HG changeset patch
854 # User johndoe
855 # Parent
856
857 diff -r ... 5
858 --- /dev/null
859 +++ b/5
860 @@ -0,0 +1,1 @@
861 +5
862 4: ff5c06112e5a [mq]: 5.patch - johndoe
863 3: 0dfb3111e7ee Four - jane
864 2: a6686ee84fc3 Three (again) - maria
865 1: a425cde5f493 [mq]: 2.patch - jane
866 0: 3682f830e656 [mq]: 1.patch - mary
867 ==== hg qref -U
868 # HG changeset patch
869 # User test
870 # Parent
871
872 diff -r ... 5
873 --- /dev/null
874 +++ b/5
875 @@ -0,0 +1,1 @@
876 +5
877 4: c947416c22b1 [mq]: 5.patch - test
878 3: 0dfb3111e7ee Four - jane
879 2: a6686ee84fc3 Three (again) - maria
880 1: a425cde5f493 [mq]: 2.patch - jane
881 0: 3682f830e656 [mq]: 1.patch - mary
882 ==== hg qref -u
883 # HG changeset patch
884 # User johndeere
885 # Parent
886
887 diff -r ... 5
888 --- /dev/null
889 +++ b/5
890 @@ -0,0 +1,1 @@
891 +5
892 4: 1d898e201a22 [mq]: 5.patch - johndeere
893 3: 0dfb3111e7ee Four - jane
894 2: a6686ee84fc3 Three (again) - maria
895 1: a425cde5f493 [mq]: 2.patch - jane
896 0: 3682f830e656 [mq]: 1.patch - mary
897 ==== qnew with plain header
898 popping 6.patch
899 now at: 5.patch
900 now at: 6.patch
901 From: test
902
903 5: 7825a18ec839 imported patch 6.patch - test
904 4: 1d898e201a22 [mq]: 5.patch - johndeere
905 3: 0dfb3111e7ee Four - jane
906 2: a6686ee84fc3 Three (again) - maria
907 1: a425cde5f493 [mq]: 2.patch - jane
908 0: 3682f830e656 [mq]: 1.patch - mary
909 ==== hg qref
910 adding 6
911 From: test
912
913 diff -r ... 6
914 --- /dev/null
915 +++ b/6
916 @@ -0,0 +1,1 @@
917 +6
918 5: 09d19592680d [mq]: 6.patch - test
919 4: 1d898e201a22 [mq]: 5.patch - johndeere
920 3: 0dfb3111e7ee Four - jane
921 2: a6686ee84fc3 Three (again) - maria
922 1: a425cde5f493 [mq]: 2.patch - jane
923 0: 3682f830e656 [mq]: 1.patch - mary
924 ==== hg qref -U
925 From: test
926
927 diff -r ... 6
928 --- /dev/null
929 +++ b/6
930 @@ -0,0 +1,1 @@
931 +6
932 5: 09d19592680d [mq]: 6.patch - test
933 4: 1d898e201a22 [mq]: 5.patch - johndeere
934 3: 0dfb3111e7ee Four - jane
935 2: a6686ee84fc3 Three (again) - maria
936 1: a425cde5f493 [mq]: 2.patch - jane
937 0: 3682f830e656 [mq]: 1.patch - mary
938 ==== hg qref -u
939 From: johndeere
940
941 diff -r ... 6
942 --- /dev/null
943 +++ b/6
944 @@ -0,0 +1,1 @@
945 +6
946 5: 32641ee07196 [mq]: 6.patch - johndeere
947 4: 1d898e201a22 [mq]: 5.patch - johndeere
948 3: 0dfb3111e7ee Four - jane
949 2: a6686ee84fc3 Three (again) - maria
950 1: a425cde5f493 [mq]: 2.patch - jane
951 0: 3682f830e656 [mq]: 1.patch - mary
952 ==== qpop -a / qpush -a
953 popping 6.patch
954 popping 5.patch
955 popping 4.patch
956 popping 3.patch
957 popping 2.patch
958 popping 1.patch
959 patch queue now empty
960 applying 1.patch
961 applying 2.patch
962 applying 3.patch
963 applying 4.patch
964 applying 5.patch
965 applying 6.patch
966 now at: 6.patch
967 5: 1fb083c80457 imported patch 6.patch - johndeere
968 4: 7e96e969691d imported patch 5.patch - johndeere
969 3: c7147533d3cd Four - jane
970 2: b383d04401ea Three (again) - maria
971 1: fac2da4efc3c imported patch 2.patch - jane
972 0: b6e237e8771b imported patch 1.patch - mary
973
974 $ cd ..