Mercurial > evolve
comparison tests/test-inhibit.t @ 1443:6c122c975125
evolve: add a hint when the parent working copy become obsolete
This should help people find the right commands to recover from this situation.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 24 Jun 2015 16:37:02 -0700 |
parents | c02cdb97ebfa |
children | 5f6e78aea094 |
comparison
equal
deleted
inserted
replaced
1442:6a219f8089f9 | 1443:6c122c975125 |
---|---|
646 adding file changes | 646 adding file changes |
647 added 2 changesets with 1 changes to 2 files (+1 heads) | 647 added 2 changesets with 1 changes to 2 files (+1 heads) |
648 (run 'hg heads' to see heads, 'hg merge' to merge) | 648 (run 'hg heads' to see heads, 'hg merge' to merge) |
649 | 649 |
650 Only allow direct access and check that evolve works like before | 650 Only allow direct access and check that evolve works like before |
651 (also disable evolve commands to avoid hint about using evolve) | |
651 $ cat >> $HGRCPATH <<EOF | 652 $ cat >> $HGRCPATH <<EOF |
652 > [extensions] | 653 > [extensions] |
653 > inhibit=! | 654 > inhibit=! |
655 > [experimental] | |
656 > evolution=createmarkers | |
654 > EOF | 657 > EOF |
655 | 658 |
656 $ hg up 15 | 659 $ hg up 15 |
657 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 660 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
658 working directory parent is obsolete! | 661 working directory parent is obsolete! |
662 $ cat >> $HGRCPATH <<EOF | |
663 > [experimental] | |
664 > evolution=all | |
665 > EOF | |
659 $ echo "CM" > cM | 666 $ echo "CM" > cM |
660 $ hg amend | 667 $ hg amend |
661 $ hg log -G | 668 $ hg log -G |
662 @ 21:721c3c279519 add cM | 669 @ 21:721c3c279519 add cM |
663 | | 670 | |