tests/test-evolve-orphan-split.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Wed, 21 Mar 2018 16:18:31 +0100
branchmercurial-4.3
changeset 3591 98941c28f3e2
parent 3590 d5adce52cef4
child 3592 7a5c3175015e
child 4363 a2fdbece7ce1
permissions -rw-r--r--
test-compat: merge mercurial-4.4 into mercurial-4.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     1
** Testing resolution of orphans by `hg evolve` where an obsolete changeset has
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     2
multiple successors **
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     3
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     4
  $ cat >> $HGRCPATH <<EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     5
  > [ui]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     6
  > interactive = True
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     7
  > [alias]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     8
  > glog = log -GT "{rev}:{node|short} {desc}\n ({bookmarks}) {phase}"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
     9
  > [extensions]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    10
  > rebase =
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    11
  > EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    12
  $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    13
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    14
Repo Setup
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    15
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    16
  $ hg init repo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    17
  $ cd repo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    18
  $ echo ".*\.orig" > .hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    19
  $ hg add .hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    20
  $ hg ci -m "added hgignore"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    21
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    22
An orphan changeset with parent got splitted
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    23
--------------------------------------------
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    24
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    25
  $ for ch in a b c; do echo foo > $ch; done;
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    26
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    27
  $ hg add a b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    28
  $ hg ci -m "added a and b"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    29
  $ hg add c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    30
  $ hg ci -m "added c"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    31
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    32
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    33
  @  2:86e1ebf1ca61 added c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    34
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    35
  o  1:d0ddb614efbd added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    36
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    37
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    38
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    39
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    40
  $ hg split -r 1 <<EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    41
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    42
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    43
  > n
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    44
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    45
  > EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    46
  0 files updated, 0 files merged, 3 files removed, 0 files unresolved
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    47
  adding a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    48
  adding b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    49
  diff --git a/a b/a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    50
  new file mode 100644
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    51
  examine changes to 'a'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    52
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    53
  @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    54
  +foo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    55
  record change 1/2 to 'a'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    56
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    57
  diff --git a/b b/b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    58
  new file mode 100644
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    59
  examine changes to 'b'? [Ynesfdaq?] n
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    60
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    61
  created new head
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    62
  Done splitting? [yN] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    63
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    64
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    65
  @  4:8b179cffc81c added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    66
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    67
  o  3:bd3735d4dab0 added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    68
  |   () draft
3590
d5adce52cef4 test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3543
diff changeset
    69
  | o  2:86e1ebf1ca61 added c
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    70
  | |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    71
  | x  1:d0ddb614efbd added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    72
  |/    () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    73
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    74
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    75
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    76
  $ hg evolve
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    77
  move:[2] added c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    78
  atop:[4] added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    79
  working directory is now at af13f0560b31
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    80
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    81
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    82
  @  5:af13f0560b31 added c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    83
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    84
  o  4:8b179cffc81c added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    85
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    86
  o  3:bd3735d4dab0 added a and b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    87
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    88
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    89
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    90
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    91
When the successors does not form a linear chain and are multiple heads
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    92
-----------------------------------------------------------------------
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    93
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    94
  $ hg fold -r .^^::. --exact -m "added a b c"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    95
  3 changesets folded
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    96
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    97
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    98
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
    99
  @  6:f89e4764f2ed added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   100
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   101
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   102
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   103
  $ echo foo > d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   104
  $ hg ci -Aqm "added d"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   105
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   106
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   107
  @  7:d48a30875f01 added d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   108
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   109
  o  6:f89e4764f2ed added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   110
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   111
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   112
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   113
  $ hg prev
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   114
  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   115
  [6] added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   116
  $ hg split -r . <<EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   117
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   118
  > n
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   119
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   120
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   121
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   122
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   123
  > y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   124
  > EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   125
  0 files updated, 0 files merged, 3 files removed, 0 files unresolved
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   126
  adding a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   127
  adding b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   128
  adding c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   129
  diff --git a/a b/a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   130
  new file mode 100644
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   131
  examine changes to 'a'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   132
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   133
  @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   134
  +foo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   135
  record change 1/3 to 'a'? [Ynesfdaq?] n
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   136
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   137
  diff --git a/b b/b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   138
  new file mode 100644
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   139
  examine changes to 'b'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   140
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   141
  @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   142
  +foo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   143
  record change 2/3 to 'b'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   144
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   145
  diff --git a/c b/c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   146
  new file mode 100644
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   147
  examine changes to 'c'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   148
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   149
  @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   150
  +foo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   151
  record change 3/3 to 'c'? [Ynesfdaq?] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   152
  
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   153
  created new head
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   154
  Done splitting? [yN] y
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   155
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   156
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   157
  @  9:c0fbf8aaf6c4 added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   158
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   159
  o  8:f2632392aefe added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   160
  |   () draft
3590
d5adce52cef4 test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3543
diff changeset
   161
  | o  7:d48a30875f01 added d
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   162
  | |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   163
  | x  6:f89e4764f2ed added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   164
  |/    () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   165
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   166
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   167
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   168
  $ hg rebase -r . -d 8fa14d15e168
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   169
  rebasing 9:c0fbf8aaf6c4 "added a b c" (tip)
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   170
  $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   171
  @  10:7f87764e5b64 added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   172
  |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   173
  | o  8:f2632392aefe added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   174
  |/    () draft
3590
d5adce52cef4 test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3543
diff changeset
   175
  | o  7:d48a30875f01 added d
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   176
  | |   () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   177
  | x  6:f89e4764f2ed added a b c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   178
  |/    () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   179
  o  0:8fa14d15e168 added hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   180
      () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   181
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   182
  $ hg evolve --dry-run <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   183
  > 0
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   184
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   185
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   186
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   187
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   188
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   189
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   190
  enter the index of the revision you want to select: 0
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   191
  move:[7] added d
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   192
  atop:[8] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   193
  hg rebase -r d48a30875f01 -d f2632392aefe
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   194
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   195
  $ hg evolve --dry-run <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   196
  > 1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   197
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   198
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   199
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   200
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   201
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   202
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   203
  enter the index of the revision you want to select: 1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   204
  move:[7] added d
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   205
  atop:[10] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   206
  hg rebase -r d48a30875f01 -d 7f87764e5b64
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   207
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   208
Testing the interactive prompt with invalid values first
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   209
(this should move its own test file when we use it at multiple places)
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   210
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   211
  $ hg evolve --all <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   212
  > foo
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   213
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   214
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   215
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   216
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   217
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   218
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   219
  enter the index of the revision you want to select: foo
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   220
  invalid value 'foo' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
   221
  could not solve instability, ambiguous destination: parent split across two branches
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   222
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   223
  $ hg evolve --all <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   224
  > 4
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   225
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   226
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   227
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   228
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   229
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   230
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   231
  enter the index of the revision you want to select: 4
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   232
  invalid value '4' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
   233
  could not solve instability, ambiguous destination: parent split across two branches
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   234
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   235
  $ hg evolve --all <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   236
  > -1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   237
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   238
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   239
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   240
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   241
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   242
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   243
  enter the index of the revision you want to select: -1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   244
  invalid value '-1' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
   245
  could not solve instability, ambiguous destination: parent split across two branches
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
   246
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   247
  $ hg evolve --all <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   248
  > q
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   249
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   250
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   251
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   252
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   253
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   254
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   255
  enter the index of the revision you want to select: q
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
   256
  could not solve instability, ambiguous destination: parent split across two branches
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   257
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   258
Doing the evolve with the interactive prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   259
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   260
  $ hg evolve --all <<EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   261
  > 1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   262
  > EOF
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   263
  ancestor 'd48a30875f01' split over multiple topological branches.
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   264
  choose an evolve destination:
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   265
  0: [f2632392aefe] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   266
  1: [7f87764e5b64] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   267
  q: quit the prompt
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   268
  enter the index of the revision you want to select: 1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   269
  move:[7] added d
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   270
  atop:[10] added a b c
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
   271
  working directory is now at 1c6caa7c902a