comparison tests/test-prev-next.t @ 5939:0511ad9f0862 mercurial-5.6

test-compat: merge mercurial-5.7 into mercurial-5.6
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 27 May 2021 23:09:47 +0800
parents 34cd08a46b6d 6cdea542b6ea
children 6d91fe3ec0a2 c0921b5277a0
comparison
equal deleted inserted replaced
5892:34cd08a46b6d 5939:0511ad9f0862
606 > q 606 > q
607 > EOF 607 > EOF
608 move:[4] B 608 move:[4] B
609 atop:[5] B modified 609 atop:[5] B modified
610 working directory is now at 1b434459c7e7 610 working directory is now at 1b434459c7e7
611
612 $ cd ..
613
614 Testing --merge and --evolve flags: 1 child, 1 aspchild, dirty working copy
615
616 $ hg init next-dirty-evolve
617 $ cd next-dirty-evolve
618
619 $ echo apple > a
620 $ hg ci -qAm apple
621 $ echo banana > b
622 $ hg ci -qAm banana
623 $ echo coconut > c
624 $ hg ci -qAm coconut
625
626 $ hg prev
627 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
628 [1] banana
629 $ echo blueberry > b
630 $ hg ci --amend -m blueberry
631 1 new orphan changesets
632
633 $ echo durian > d
634 $ hg ci -qAm durian
635 $ hg log -GT "{rev} {desc}\n"
636 @ 4 durian
637 |
638 o 3 blueberry
639 |
640 | * 2 coconut
641 | |
642 | x 1 banana
643 |/
644 o 0 apple
645
646
647 $ hg up 'desc("blueberry")'
648 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
649 $ echo avocado > a
650
651 $ hg next --no-merge --evolve --dry-run
652 abort: uncommitted changes
653 (use `hg amend`, `hg revert` or `hg shelve`)
654 [255]
655 $ hg next --no-merge --no-evolve --dry-run
656 abort: uncommitted changes
657 (do you want --merge?)
658 [255]
659 $ hg next --merge --no-evolve --dry-run
660 hg update db0dc1f00682;
661 [4] durian
662 $ hg next --merge --evolve --dry-run
663 abort: uncommitted changes
664 (use `hg amend`, `hg revert` or `hg shelve`)
665 [255]