annotate tests/test-evolve-orphan-split.t @ 6040:29bc269bcc96

tests: source common.sh in more tests
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 20 Sep 2021 20:28:49 +0300
parents c2fab88e6d60
children 6b7ef731141b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5647
diff changeset
4 $ . $TESTDIR/testlib/common.sh
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5647
diff changeset
5
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
6 $ cat >> $HGRCPATH <<EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
7 > [ui]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
8 > interactive = True
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
9 > [alias]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
10 > 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
11 > [extensions]
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
12 > rebase =
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5647
diff changeset
13 > evolve =
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
14 > EOF
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 Repo Setup
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
17
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
18 $ hg init repo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
19 $ cd repo
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
20 $ echo ".*\.orig" > .hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
21 $ hg add .hgignore
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
22 $ 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
23
4455
b58e45aa9be2 test: use 'split' instead of 'splitted' in the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4393
diff changeset
24 An orphan changeset with parent got split
b58e45aa9be2 test: use 'split' instead of 'splitted' in the tests
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4393
diff changeset
25 -----------------------------------------
3537
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 $ 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
28
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
29 $ hg add a b
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 a and b"
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
31 $ hg add c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
32 $ 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
33
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
34 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
35 @ 2:86e1ebf1ca61 added c
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 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
38 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
39 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
40 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
41
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
42 $ 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
43 > y
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 > n
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
46 > c
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
47 > EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
48 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
49 adding a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
50 adding b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
51 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
52 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
53 examine changes to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
54 (enter ? for help) [Ynesfdaq?] y
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
55
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
56 @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
57 +foo
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
58 record change 1/2 to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
59 (enter ? for help) [Ynesfdaq?] y
3537
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 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
62 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
63 examine changes to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
64 (enter ? for help) [Ynesfdaq?] n
3537
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
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
67 continue splitting? [Ycdq?] c
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
68 1 new orphan changesets
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
69
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
70 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
71 @ 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
72 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
73 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
74 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
75 | * 2:86e1ebf1ca61 added c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
76 | | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
77 | 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
78 |/ () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
79 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
80 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
81
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4455
diff changeset
82 $ hg evolve --update
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
83 move:[2] added c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
84 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
85 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
86
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
87 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
88 @ 5:af13f0560b31 added c
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 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
91 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
92 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
93 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
94 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
95 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
96
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
97 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
98 -----------------------------------------------------------------------
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
99
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
100 $ 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
101 3 changesets folded
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
102 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
103
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
104 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
105 @ 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
106 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
107 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
108 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
109 $ echo foo > d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
110 $ 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
111
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
112 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
113 @ 7:d48a30875f01 added d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
114 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
115 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
116 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
117 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
118 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
119 $ hg prev
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
120 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
121 [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
122 $ hg split -r . <<EOF
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 > n
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
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
129 > c
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
130 > EOF
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
131 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
132 adding a
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
133 adding b
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
134 adding c
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
135 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
136 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
137 examine changes to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
138 (enter ? for help) [Ynesfdaq?] y
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
139
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
140 @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
141 +foo
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
142 record change 1/3 to 'a'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
143 (enter ? for help) [Ynesfdaq?] n
3537
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/b b/b
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
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
147 examine changes to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
148 (enter ? for help) [Ynesfdaq?] y
3537
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 @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
151 +foo
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
152 record change 2/3 to 'b'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
153 (enter ? for help) [Ynesfdaq?] y
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
154
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
155 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
156 new file mode 100644
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
157 examine changes to 'c'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
158 (enter ? for help) [Ynesfdaq?] y
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
159
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
160 @@ -0,0 +1,1 @@
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
161 +foo
4712
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
162 record change 3/3 to 'c'?
e2c548cc83b5 tests: update output for shorted prompts from Mercurial
Martin von Zweigbergk <martinvonz@google.com>
parents: 4577
diff changeset
163 (enter ? for help) [Ynesfdaq?] y
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
164
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
165 created new head
4294
8974a05a49fa split: rework the prompt to be more standard
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 4293
diff changeset
166 continue splitting? [Ycdq?] c
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
167 1 new orphan changesets
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
168
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
169 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
170 @ 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
171 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
172 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
173 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
174 | * 7:d48a30875f01 added d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
175 | | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
176 | 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
177 |/ () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
178 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
179 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
180
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
181 $ hg rebase -r . -d 8fa14d15e168
5647
c2fab88e6d60 tests: rebase now produces different "one-line summary" output
Martin von Zweigbergk <martinvonz@google.com>
parents: 5197
diff changeset
182 rebasing 9:c0fbf8aaf6c4 tip "added a b c"
3537
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
183 $ hg glog
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
184 @ 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
185 | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
186 | 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
187 |/ () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
188 | * 7:d48a30875f01 added d
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
189 | | () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
190 | 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
191 |/ () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
192 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
193 () draft
8b5093f333dc tests: add a test about evolve stabilizing orphan caused by splits
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
194
3541
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
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
196 > 1
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
197 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
198 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
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:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
200 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
201 2: [7f87764e5b64] added a b c
3541
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
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
203 enter the index of the revision you want to select: 1
3541
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:[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
206 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
207
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
208 $ hg evolve --dry-run <<EOF
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
209 > 2
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
210 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
211 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
212 choose an evolve destination:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
213 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
214 2: [7f87764e5b64] added a b c
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
215 q: quit the prompt
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
216 enter the index of the revision you want to select: 2
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
217 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
218 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
219 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
220
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
221 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
222 (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
223
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
224 $ 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
225 > foo
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
226 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
227 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
228 choose an evolve destination:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
229 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
230 2: [7f87764e5b64] added a b c
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
231 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
232 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
233 invalid value 'foo' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
234 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
235
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
236 $ 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
237 > 4
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
238 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
239 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
240 choose an evolve destination:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
241 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
242 2: [7f87764e5b64] added a b c
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
243 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
244 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
245 invalid value '4' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
246 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
247
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
248 $ 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
249 > -1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
250 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
251 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
252 choose an evolve destination:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
253 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
254 2: [7f87764e5b64] added a b c
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
255 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
256 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
257 invalid value '-1' entered for index
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
258 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
259
3541
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 > q
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
262 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
263 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
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:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
265 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
266 2: [7f87764e5b64] added a b c
3541
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: q
3543
93deeed63908 evolve: fix missing negation
Pierre-Yves David <pierre-yves.david@octobus.net>
parents: 3542
diff changeset
269 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
270
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
271 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
272
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
273 $ 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
274 > 1
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
275 > EOF
5197
143ac9ac77a3 evolve: add missing 'of' in message
Manuel Jacob <me@manueljacob.de>
parents: 4712
diff changeset
276 ancestor of 'd48a30875f01' split over multiple topological branches.
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
277 choose an evolve destination:
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
278 1: [f2632392aefe] added a b c
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
279 2: [7f87764e5b64] added a b c
3541
bc47c09c9782 evolve: prompt user to select destination for stabilization in case of split
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3537
diff changeset
280 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
281 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
282 move:[7] added d
4393
159a4a6ded0b prompts: use 1-indexing in revselectionprompt()
Martin von Zweigbergk <martinvonz@google.com>
parents: 4294
diff changeset
283 atop:[8] added a b c