Mercurial > evolve
annotate tests/test-evolve-stop-contentdiv.t @ 4361:a7998b9cfcaf mercurial-4.3
branching: closing test-compat branch for mercurial-4.3
We are dropping support for this version.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 22 Jan 2019 12:59:33 -0500 |
parents | 537fd9a86c06 |
children |
rev | line source |
---|---|
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
1 Tests for the --stop flag for `hg evolve` command while resolving content-divergence |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
2 ================================================================================== |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
3 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
4 The `--stop` flag stops the interrupted evolution and delete the state file so |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
5 user can do other things and comeback and do evolution later on |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
6 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
7 This is testing cases when `hg evolve` command is doing content-divergence resolution. |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
8 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
9 Setup |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
10 ===== |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
11 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
12 $ cat >> $HGRCPATH <<EOF |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
13 > [alias] |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
14 > glog = log -GT "{rev}:{node|short} {desc}\n ({bookmarks}) {phase}" |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
15 > [extensions] |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
16 > EOF |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
17 $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
18 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
19 $ hg init stoprepo |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
20 $ cd stoprepo |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
21 $ echo ".*\.orig" > .hgignore |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
22 $ hg add .hgignore |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
23 $ hg ci -m "added hgignore" |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
24 $ for ch in a b c d; do echo foo > $ch; hg add $ch; hg ci -qm "added "$ch; done; |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
25 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
26 $ hg glog |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
27 @ 4:c41c793e0ef1 added d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
28 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
29 o 3:ca1b80f7960a added c |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
30 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
31 o 2:b1661037fa25 added b |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
32 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
33 o 1:c7586e2a9264 added a |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
34 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
35 o 0:8fa14d15e168 added hgignore |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
36 () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
37 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
38 Creating content divergence, resolution of which will lead to conflicts |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
39 ----------------------------------------------------------------------- |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
40 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
41 $ echo bar > d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
42 $ hg amend |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
43 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
44 $ hg up c41c793e0ef1 --hidden |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
46 working directory parent is obsolete! (c41c793e0ef1) |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
47 (use 'hg evolve' to update to its successor: e49523854bc8) |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
48 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
49 $ echo foobar > d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
50 $ hg amend |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
51 2 new divergent changesets |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
52 $ hg glog --hidden |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
53 @ 8:9c1631e352d9 added d |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
54 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
55 | x 7:48ce7f604829 temporary amend commit for c41c793e0ef1 |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
56 | | () draft |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
57 +---o 6:e49523854bc8 added d |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
58 | | () draft |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
59 | | x 5:14721514d41c temporary amend commit for c41c793e0ef1 |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
60 | |/ () draft |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
61 | x 4:c41c793e0ef1 added d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
62 |/ () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
63 o 3:ca1b80f7960a added c |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
64 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
65 o 2:b1661037fa25 added b |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
66 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
67 o 1:c7586e2a9264 added a |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
68 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
69 o 0:8fa14d15e168 added hgignore |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
70 () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
71 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
72 $ hg evolve --content-divergent |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
73 merge:[8] added d |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
74 with: [6] added d |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
75 base: [4] added d |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
76 merging "other" divergent changeset 'e49523854bc8' |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
77 merging d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
78 warning: conflicts while merging d! (edit, then use 'hg resolve --mark') |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
79 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
3852
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
80 fix conflicts and see `hg help evolve.interrupted` |
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
81 [1] |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
82 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
83 $ hg evolve --stop |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
84 stopped the interrupted evolve |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
85 working directory is now at 9c1631e352d9 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
86 |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
87 $ hg glog --hidden |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
88 @ 8:9c1631e352d9 added d |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
89 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
90 | x 7:48ce7f604829 temporary amend commit for c41c793e0ef1 |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
91 | | () draft |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
92 +---o 6:e49523854bc8 added d |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
93 | | () draft |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
94 | | x 5:14721514d41c temporary amend commit for c41c793e0ef1 |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
95 | |/ () draft |
3761
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
96 | x 4:c41c793e0ef1 added d |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
97 |/ () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
98 o 3:ca1b80f7960a added c |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
99 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
100 o 2:b1661037fa25 added b |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
101 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
102 o 1:c7586e2a9264 added a |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
103 | () draft |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
104 o 0:8fa14d15e168 added hgignore |
777c29ac02bf
content-div: add test showing `--stop` works during interrupted resolution
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff
changeset
|
105 () draft |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
106 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
107 Content divergence with parent change which will result in conflicts while |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
108 merging |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
109 --------------------------------------------------------------------------- |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
110 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
111 $ hg rebase -r . -d .^^^ --config extensions.rebase= |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
112 rebasing 8:9c1631e352d9 "added d" (tip) |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
113 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
114 $ hg glog |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
115 @ 9:517d4375cb72 added d |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
116 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
117 | o 6:e49523854bc8 added d |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
118 | | () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
119 | o 3:ca1b80f7960a added c |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
120 | | () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
121 | o 2:b1661037fa25 added b |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
122 |/ () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
123 o 1:c7586e2a9264 added a |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
124 | () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
125 o 0:8fa14d15e168 added hgignore |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
126 () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
127 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
128 $ hg evolve --content-divergent |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
129 merge:[6] added d |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
130 with: [9] added d |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
131 base: [4] added d |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
132 rebasing "other" content-divergent changeset 517d4375cb72 on ca1b80f7960a |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
133 updating to "local" side of the conflict: e49523854bc8 |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
134 merging "other" divergent changeset '606ad96040fc' |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
135 merging d |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
136 warning: conflicts while merging d! (edit, then use 'hg resolve --mark') |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
137 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
3852
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
138 fix conflicts and see `hg help evolve.interrupted` |
629558d09898
evolve: raise error.InterventionRequired instead of Abort when conflicts
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3842
diff
changeset
|
139 [1] |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
140 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
141 $ hg evolve --stop |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
142 stopped the interrupted evolve |
3827
82c72eb37f85
evolve: strip the relocation commit on `hg evolve --stop`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3823
diff
changeset
|
143 working directory is now at 517d4375cb72 |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
144 |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
145 $ hg glog |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
146 @ 9:517d4375cb72 added d |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
147 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
148 | o 6:e49523854bc8 added d |
3827
82c72eb37f85
evolve: strip the relocation commit on `hg evolve --stop`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3823
diff
changeset
|
149 | | () draft |
82c72eb37f85
evolve: strip the relocation commit on `hg evolve --stop`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3823
diff
changeset
|
150 | o 3:ca1b80f7960a added c |
82c72eb37f85
evolve: strip the relocation commit on `hg evolve --stop`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3823
diff
changeset
|
151 | | () draft |
82c72eb37f85
evolve: strip the relocation commit on `hg evolve --stop`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3823
diff
changeset
|
152 | o 2:b1661037fa25 added b |
3823
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
153 |/ () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
154 o 1:c7586e2a9264 added a |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
155 | () draft |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
156 o 0:8fa14d15e168 added hgignore |
7b33a6ed0539
tests: add test for --stop flag when resolving multiparents content-div
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3761
diff
changeset
|
157 () draft |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
158 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
159 Content-divergence with parent-change which will result in conflicts while |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
160 relocation |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
161 --------------------------------------------------------------------------- |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
162 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
163 $ echo babar > c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
164 $ hg add c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
165 $ hg amend |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
166 $ hg glog |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
167 @ 11:8fd1c4bd144c added d |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
168 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
169 | o 6:e49523854bc8 added d |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
170 | | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
171 | o 3:ca1b80f7960a added c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
172 | | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
173 | o 2:b1661037fa25 added b |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
174 |/ () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
175 o 1:c7586e2a9264 added a |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
176 | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
177 o 0:8fa14d15e168 added hgignore |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
178 () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
179 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
180 $ hg evolve --content-divergent |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
181 merge:[6] added d |
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
182 with: [11] added d |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
183 base: [4] added d |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
184 rebasing "other" content-divergent changeset 8fd1c4bd144c on ca1b80f7960a |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
185 merging c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
186 warning: conflicts while merging c! (edit, then use 'hg resolve --mark') |
3853
796334340cad
evolve: make one missed error to align other error messages
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3852
diff
changeset
|
187 fix conflicts and see `hg help evolve.interrupted` |
796334340cad
evolve: make one missed error to align other error messages
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3852
diff
changeset
|
188 [1] |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
189 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
190 $ hg diff |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
191 diff -r ca1b80f7960a c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
192 --- a/c Thu Jan 01 00:00:00 1970 +0000 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
193 +++ b/c Thu Jan 01 00:00:00 1970 +0000 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
194 @@ -1,1 +1,5 @@ |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
195 +<<<<<<< destination: ca1b80f7960a - test: added c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
196 foo |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
197 +======= |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
198 +babar |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
199 +>>>>>>> evolving: 8fd1c4bd144c - test: added d |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
200 diff -r ca1b80f7960a d |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
201 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
202 +++ b/d Thu Jan 01 00:00:00 1970 +0000 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
203 @@ -0,0 +1,1 @@ |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
204 +foobar |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
205 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
206 $ hg evolve --stop |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
207 stopped the interrupted evolve |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
208 working directory is now at ca1b80f7960a |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
209 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
210 XXX: we should have preserved the wdir to be at rev 8 |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
211 $ hg glog |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
212 o 11:8fd1c4bd144c added d |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
213 | () draft |
3936
537fd9a86c06
test-compat: merge mercurial-4.4 into mercurial-4.3
Pierre-Yves David <pierre-yves.david@octobus.net>
parents:
3930
diff
changeset
|
214 | o 6:e49523854bc8 added d |
3828
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
215 | | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
216 | @ 3:ca1b80f7960a added c |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
217 | | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
218 | o 2:b1661037fa25 added b |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
219 |/ () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
220 o 1:c7586e2a9264 added a |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
221 | () draft |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
222 o 0:8fa14d15e168 added hgignore |
c58ebf5d2f57
tests: add more test of --stop while resolving content-divergence
Pulkit Goyal <7895pulkit@gmail.com>
parents:
3827
diff
changeset
|
223 () draft |