Mercurial > evolve
annotate tests/test-evolve-orphan-split.t @ 3683:965e7bbc3fec mercurial-4.2
compat: close test-compat branch for mercurial-4.2
Support for this version have just been dropped.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 19 Apr 2018 11:39:04 +0200 |
parents | 7a5c3175015e |
children |
rev | line source |
---|---|
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 |
3592
7a5c3175015e
test-compat: merge mercurial-4.3 into mercurial-4.2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3590
diff
changeset
|
5 > [defaults] |
7a5c3175015e
test-compat: merge mercurial-4.3 into mercurial-4.2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3590
diff
changeset
|
6 > amend=-d "0 0" |
7a5c3175015e
test-compat: merge mercurial-4.3 into mercurial-4.2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3590
diff
changeset
|
7 > fold=-d "0 0" |
7a5c3175015e
test-compat: merge mercurial-4.3 into mercurial-4.2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3590
diff
changeset
|
8 > split=-d "0 0" |
7a5c3175015e
test-compat: merge mercurial-4.3 into mercurial-4.2
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3590
diff
changeset
|
9 > amend=-d "0 0" |
3537
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
10 > [ui] |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
11 > interactive = True |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
12 > [alias] |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
13 > 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
|
14 > [extensions] |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
15 > rebase = |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
16 > EOF |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
17 $ 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
|
18 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
19 Repo Setup |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
21 $ hg init repo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 $ cd repo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
23 $ echo ".*\.orig" > .hgignore |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 $ hg add .hgignore |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 $ 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
|
26 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
27 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
|
28 -------------------------------------------- |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
29 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
30 $ 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
|
31 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 $ hg add a b |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
33 $ 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
|
34 $ hg add c |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
35 $ 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
|
36 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 @ 2:86e1ebf1ca61 added c |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
40 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
|
41 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
42 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
|
43 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
45 $ 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
|
46 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 > n |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
49 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 > EOF |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
51 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
|
52 adding a |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
53 adding b |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
54 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
|
55 new file mode 100644 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
56 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
|
57 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
58 @@ -0,0 +1,1 @@ |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
59 +foo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
60 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
|
61 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
62 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
|
63 new file mode 100644 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
64 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
|
65 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
66 created new head |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
67 Done splitting? [yN] y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
68 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
69 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
70 @ 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
|
71 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 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
|
73 | () draft |
3590
d5adce52cef4
test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3543
diff
changeset
|
74 | 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
|
75 | | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
76 | 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
|
77 |/ () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
78 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
|
79 () draft |
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 evolve |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 move:[2] added c |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
83 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
|
84 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
|
85 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
86 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
87 @ 5:af13f0560b31 added c |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
88 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
89 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
|
90 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
91 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
|
92 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
93 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
|
94 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
95 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
96 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
|
97 ----------------------------------------------------------------------- |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
98 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
99 $ 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
|
100 3 changesets folded |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
101 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
|
102 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
103 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 @ 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
|
105 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
106 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
|
107 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
108 $ echo foo > d |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
109 $ 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
|
110 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
111 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
112 @ 7:d48a30875f01 added d |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
113 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
114 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
|
115 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
116 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
|
117 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
118 $ hg prev |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
119 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
|
120 [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
|
121 $ hg split -r . <<EOF |
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 > n |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
124 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
125 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
126 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
127 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
128 > y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
129 > EOF |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
130 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
|
131 adding a |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
132 adding b |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
133 adding c |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
134 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
|
135 new file mode 100644 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
136 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
|
137 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
138 @@ -0,0 +1,1 @@ |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
139 +foo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
140 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
|
141 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
142 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
|
143 new file mode 100644 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
144 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
|
145 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
146 @@ -0,0 +1,1 @@ |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
147 +foo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
148 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
|
149 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
150 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
|
151 new file mode 100644 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
152 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
|
153 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
154 @@ -0,0 +1,1 @@ |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
155 +foo |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
156 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
|
157 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
158 created new head |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
159 Done splitting? [yN] y |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
160 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
161 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
162 @ 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
|
163 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
164 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
|
165 | () draft |
3590
d5adce52cef4
test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3543
diff
changeset
|
166 | 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
|
167 | | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
168 | 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
|
169 |/ () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
170 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
|
171 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
172 |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
173 $ 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
|
174 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
|
175 $ hg glog |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
176 @ 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
|
177 | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
178 | 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
|
179 |/ () draft |
3590
d5adce52cef4
test-compat: merge stable into mercurial-4.4
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3543
diff
changeset
|
180 | 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
|
181 | | () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
182 | 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
|
183 |/ () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
184 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
|
185 () draft |
8b5093f333dc
tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
186 |
3541
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
187 $ 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
|
188 > 0 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
189 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
190 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
|
191 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
|
192 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
|
193 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
|
194 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
|
195 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
|
196 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
|
197 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
|
198 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
|
199 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
200 $ 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
|
201 > 1 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
202 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
203 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
|
204 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
|
205 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
|
206 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
|
207 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
|
208 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
|
209 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
|
210 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
|
211 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
|
212 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
213 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
|
214 (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
|
215 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
216 $ 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
|
217 > foo |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
218 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
219 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
|
220 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
|
221 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
|
222 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
|
223 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
|
224 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
|
225 invalid value 'foo' entered for index |
3543
93deeed63908
evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3542
diff
changeset
|
226 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
|
227 |
3541
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
228 $ 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
|
229 > 4 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
230 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
231 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
|
232 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
|
233 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
|
234 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
|
235 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
|
236 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
|
237 invalid value '4' entered for index |
3543
93deeed63908
evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3542
diff
changeset
|
238 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
|
239 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
240 $ 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
|
241 > -1 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
242 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
243 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
|
244 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
|
245 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
|
246 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
|
247 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
|
248 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
|
249 invalid value '-1' entered for index |
3543
93deeed63908
evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3542
diff
changeset
|
250 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
|
251 |
3541
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
252 $ 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
|
253 > q |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
254 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
255 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
|
256 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
|
257 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
|
258 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
|
259 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
|
260 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
|
261 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
|
262 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
263 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
|
264 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
265 $ 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
|
266 > 1 |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
267 > EOF |
bc47c09c9782
evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3537
diff
changeset
|
268 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
|
269 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
|
270 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
|
271 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
|
272 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
|
273 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
|
274 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
|
275 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
|
276 working directory is now at 1c6caa7c902a |