comparison tests/test-mq-guards.t @ 15245:aa2c35057f47

tests: exercise some corner cases for mq guard selection and --reapply
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 31 Oct 2010 18:29:55 +0100
parents 00256f689f9c
children 8caf7a757afa
comparison
equal deleted inserted replaced
15244:f6d5d01725db 15245:aa2c35057f47
432 432
433 hg qseries -m with color 433 hg qseries -m with color
434 434
435 $ hg --config extensions.color= --config color.mode=ansi qseries -m --color=always 435 $ hg --config extensions.color= --config color.mode=ansi qseries -m --color=always
436 \x1b[0;31;1mb.patch\x1b[0m (esc) 436 \x1b[0;31;1mb.patch\x1b[0m (esc)
437
438
439 excercise cornercases in "qselect --reapply"
440
441 $ hg qpop -a
442 popping c.patch
443 popping new.patch
444 patch queue now empty
445 $ hg qguard -- new.patch -not-new
446 $ hg qguard -- c.patch -not-c
447 $ hg qguard -- d.patch -not-d
448 $ hg qpush -a
449 applying new.patch
450 applying c.patch
451 applying d.patch
452 patch d.patch is empty
453 now at: d.patch
454 $ hg qguard -l
455 new.patch: -not-new
456 c.patch: -not-c
457 d.patch: -not-d
458 $ hg qselect --reapply not-d
459 popping guarded patches
460 popping d.patch
461 now at: c.patch
462 reapplying unguarded patches
463 cannot push 'd.patch' - guarded by '-not-d'
464 $ hg qser -v
465 0 A new.patch
466 1 A c.patch
467 2 G d.patch
468 $ hg qselect --reapply -n
469 guards deactivated
470 $ hg qpush
471 applying d.patch
472 patch d.patch is empty
473 now at: d.patch
474 $ hg qser -v
475 0 A new.patch
476 1 A c.patch
477 2 A d.patch
478 $ hg qselect --reapply not-c
479 popping guarded patches
480 popping d.patch
481 now at: c.patch
482 reapplying unguarded patches
483 applying d.patch
484 patch d.patch is empty
485 now at: d.patch
486 $ hg qser -v
487 0 A new.patch
488 1 A c.patch
489 2 A d.patch
490 $ hg qselect --reapply not-new
491 popping guarded patches
492 popping d.patch
493 popping c.patch
494 popping new.patch
495 patch queue now empty
496 reapplying unguarded patches
497 applying c.patch
498 applying d.patch
499 patch d.patch is empty
500 now at: d.patch
501 $ hg qser -v
502 0 G new.patch
503 1 A c.patch
504 2 A d.patch