comparison tests/test-inhibit.t @ 1343:41628bd60ee6

inhibit: add test to ensure that --hidden is working with inhibit There was a concern with the transaction hook in inhibit and its potentially devastating effect when used with --hidden. The transaction hook in inhibit hides all the visible & obsolete commits when the transaction ends using the visible() and the obsolete() revset. --hidden does not change the visible() revset so it is fine. If this changes in the future and --hidden actually ends up impacting the visible() revset, this test will catch it and prevent inhibit from putting inhibition markers on all of the obsolete changesets.
author Laurent Charignon <lcharignon@fb.com>
date Thu, 14 May 2015 11:32:04 -0700
parents 0e2eb196923a
children 9a1415f8b21b
comparison
equal deleted inserted replaced
1341:e8e3dbddc198 1343:41628bd60ee6
547 o 15:2d66e189f5b5 add cM 547 o 15:2d66e189f5b5 add cM
548 | 548 |
549 @ 14:d66ccb8c5871 add cL foo 549 @ 14:d66ccb8c5871 add cL foo
550 | 550 |
551 551
552 Check that --hidden used with inhibit does not hide every obsolete commit
553 We show the log before and after a log -G --hidden, they should be the same
554 $ hg log -G
555 o 16:a438c045eb37 add cN
556 |
557 o 15:2d66e189f5b5 add cM
558 |
559 @ 14:d66ccb8c5871 add cL
560 |
561 | o 9:55c73a90e4b4 add cJ
562 | |
563 o | 7:18214586bf78 add cJ
564 |/
565 o 6:cf5c4f4554ce add cH
566 |
567 o 5:5419eb264a33 add cG
568 |
569 o 4:98065434e5c6 add cE
570 |
571 o 0:54ccbc537fc2 add cA
572
573 $ hg log -G --hidden
574 x 19:104eed5354c7 add cN
575 |
576 x 18:210589181b14 add cM
577 |
578 | x 17:b3c3274523f9 temporary amend commit for 2d66e189f5b5
579 | |
580 | | o 16:a438c045eb37 add cN
581 | |/
582 | o 15:2d66e189f5b5 add cM
583 |/
584 @ 14:d66ccb8c5871 add cL
585 |
586 | x 13:2f7b7704d714 add cL
587 | |
588 | x 12:fe1634cbe235 add cK
589 | |
590 | | x 11:53a94305e133 add cL
591 | | |
592 | | x 10:ad78ff7d621f add cK
593 | | |
594 | | | o 9:55c73a90e4b4 add cJ
595 | | | |
596 +-------x 8:e84f73d9ad36 temporary amend commit for 18214586bf78
597 | | | |
598 o-----+ 7:18214586bf78 add cJ
599 / / /
600 | | o 6:cf5c4f4554ce add cH
601 | | |
602 | | o 5:5419eb264a33 add cG
603 | | |
604 | | o 4:98065434e5c6 add cE
605 | |/
606 x | 3:2db36d8066ff add cD
607 | |
608 x | 2:7df62a38b9bf add cC
609 | |
610 x | 1:02bcbc3f6e56 add cB
611 |/
612 o 0:54ccbc537fc2 add cA
613
614
615 $ hg log -G
616 o 16:a438c045eb37 add cN
617 |
618 o 15:2d66e189f5b5 add cM
619 |
620 @ 14:d66ccb8c5871 add cL
621 |
622 | o 9:55c73a90e4b4 add cJ
623 | |
624 o | 7:18214586bf78 add cJ
625 |/
626 o 6:cf5c4f4554ce add cH
627 |
628 o 5:5419eb264a33 add cG
629 |
630 o 4:98065434e5c6 add cE
631 |
632 o 0:54ccbc537fc2 add cA
633
634
552 check that pruning and inhibited node does not confuse anything 635 check that pruning and inhibited node does not confuse anything
553 636
554 $ hg up --hidden 210589181b14 637 $ hg up --hidden 210589181b14
555 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 638 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
556 $ hg strip --bundle 210589181b14 639 $ hg strip --bundle 210589181b14