comparison tests/test-prev-next.t @ 5948:5472f45017ce mercurial-4.7

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