annotate tests/test-evolve-continue.t @ 6401:716912541759 mercurial-5.0

test-compat: merge mercurial-5.1 into mercurial-5.0
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 07 Feb 2023 10:51:10 +0400
parents e5bd76f95145
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
1 Testing the continue functionality of `hg evolve`
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
2
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
3 $ . $TESTDIR/testlib/common.sh
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
4
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
5 $ cat >> $HGRCPATH <<EOF
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
6 > [ui]
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
7 > interactive = True
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
8 > [extensions]
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
9 > rebase =
6040
29bc269bcc96 tests: source common.sh in more tests
Anton Shestakov <av6@dwimlabs.net>
parents: 5962
diff changeset
10 > evolve =
6401
716912541759 test-compat: merge mercurial-5.1 into mercurial-5.0
Anton Shestakov <av6@dwimlabs.net>
parents: 6396
diff changeset
11 > [alias]
716912541759 test-compat: merge mercurial-5.1 into mercurial-5.0
Anton Shestakov <av6@dwimlabs.net>
parents: 6396
diff changeset
12 > continue = evolve --continue
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
13 > EOF
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
14
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
15 Setting up the repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
16
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
17 $ hg init repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
18 $ cd repo
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
19 $ echo ".*\.orig" > .hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
20 $ hg add .hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
21 $ hg ci -m "added hgignore"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
22 $ for ch in a b c d; do echo foo>$ch; hg add $ch; hg ci -qm "added "$ch; done
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
23
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
24 $ hg glog
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
25 @ 4:c41c793e0ef1 added d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
26 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
27 o 3:ca1b80f7960a added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
28 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
29 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
30 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
31 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
32 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
33 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
34 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
35
4577
bcd52ce0916d evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents: 4576
diff changeset
36 Simple case of evolve --continue
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
37
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
38 $ hg up 'desc("added c")'
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
39 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
40 $ echo bar > d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
41 $ hg add d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
42 $ hg amend
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
43 1 new orphan changesets
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
44 $ hg glog
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
45 @ 5:cb6a2ab625bb added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
46 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
47 | * 4:c41c793e0ef1 added d
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
48 | | () draft orphan
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
49 | x 3:ca1b80f7960a added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
50 |/ () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
51 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
52 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
53 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
54 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
55 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
56 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
57
4577
bcd52ce0916d evolve: don't update after instability resolution by default (BC)
Anton Shestakov <av6@dwimlabs.net>
parents: 4576
diff changeset
58 $ hg evolve --all
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
59 move:[4] added d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
60 atop:[5] added c
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
61 merging d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
62 warning: conflicts while merging d! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
63 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
64 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
65 [1]
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
66
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
67 $ echo foo > d
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
68 $ hg resolve -m
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
69 (no more unresolved files)
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
70 continue: hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
71
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
72 $ hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
73 evolving 4:c41c793e0ef1 "added d"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
74
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
75 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
76 o 6:250d8c3c5ad9 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
77 | () draft
4505
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
78 @ 5:cb6a2ab625bb added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
79 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
80 o 2:b1661037fa25 added b
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
81 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
82 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
83 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
84 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
85 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
86
4505
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
87 $ hg up
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
88 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
cc2bbe2701a3 evolve: store --update flag state in evolvestate file
Anton Shestakov <av6@dwimlabs.net>
parents: 4501
diff changeset
89
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
90 Testing hg continue for evolve
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
91
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
92 $ hg up 'desc("added b")'
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
93 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
94 $ echo bar > c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
95 $ hg add c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
96 $ hg amend
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
97 2 new orphan changesets
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
98 $ hg glog
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
99 @ 7:8591ebad2ee8 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
100 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
101 | * 6:250d8c3c5ad9 added d
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
102 | | () draft orphan
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
103 | * 5:cb6a2ab625bb added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
104 | | () draft orphan
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
105 | x 2:b1661037fa25 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
106 |/ () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
107 o 1:c7586e2a9264 added a
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
108 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
109 o 0:8fa14d15e168 added hgignore
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
110 () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
111
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
112 $ hg evolve --all
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
113 move:[5] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
114 atop:[7] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
115 merging c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
116 warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
117 unresolved merge conflicts
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
118 (see 'hg help evolve.interrupted')
6395
1328195f76a9 test-compat: merge mercurial-5.7 into mercurial-5.6
Anton Shestakov <av6@dwimlabs.net>
parents: 6065 6317
diff changeset
119 [1]
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
120
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
121 $ echo foo > c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
122 $ hg resolve -m
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
123 (no more unresolved files)
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
124 continue: hg evolve --continue
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
125
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
126 $ hg continue
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
127 evolving 5:cb6a2ab625bb "added c"
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
128 move:[6] added d
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
129 atop:[8] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
130
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
131 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
132 o 9:628919fc6772 added d
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
133 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
134 o 8:f8d5006085c0 added c
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
135 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
136 @ 7:8591ebad2ee8 added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
137 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
138 o 1:c7586e2a9264 added a
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
139 | () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
140 o 0:8fa14d15e168 added hgignore
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
141 () draft
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
142
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
143 $ hg up
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
144 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
145
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
146 Case when conflicts resolution lead to empty wdir in evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
147
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
148 $ echo foo > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
149 $ hg ci -Aqm "added e"
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
150 $ hg prev
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
151 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
152 [9] added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
153 $ echo bar > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
154 $ hg add e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
155 $ hg amend
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
156 1 new orphan changesets
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
157
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
158 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
159 @ 11:7898e026e390 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
160 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
161 | * 10:5610cf0a9e66 added e
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
162 | | () draft orphan
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
163 | x 9:628919fc6772 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
164 |/ () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
165 o 8:f8d5006085c0 added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
166 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
167 o 7:8591ebad2ee8 added b
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
168 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
169 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
170 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
171 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
172 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
173
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
174 $ hg evolve --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
175 move:[10] added e
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
176 atop:[11] added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
177 merging e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
178 warning: conflicts while merging e! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
179 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
180 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
181 [1]
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
182
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
183 $ echo bar > e
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
184 $ hg resolve -m
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
185 (no more unresolved files)
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
186 continue: hg evolve --continue
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
187 $ hg diff
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
188
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
189 $ hg evolve --continue
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
190 evolving 10:5610cf0a9e66 "added e"
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
191 evolution of 10:5610cf0a9e66 created no changes to commit
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
192
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
193 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
194 @ 11:7898e026e390 added d
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
195 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
196 o 8:f8d5006085c0 added c
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
197 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
198 o 7:8591ebad2ee8 added b
3489
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
199 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
200 o 1:c7586e2a9264 added a
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
201 | () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
202 o 0:8fa14d15e168 added hgignore
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
203 () draft
ee72cdc2387b tests: add tests for `hg evolve --continue`
Pulkit Goyal <7895pulkit@gmail.com>
parents:
diff changeset
204
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
205 Case when there are a lot of revision to continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
206
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
207 $ hg up 'desc("added a")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
208 0 files updated, 0 files merged, 4 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
209 $ echo bar > b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
210 $ hg add b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
211 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
212 3 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
213
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
214 $ hg evolve --all --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
215 move:[7] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
216 atop:[12] added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
217 merging b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
218 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
219 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
220 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
221 [1]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
222
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
223 $ echo foo > b
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
224 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
225 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
226 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
227 $ hg evolve --continue
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
228 evolving 7:8591ebad2ee8 "added b"
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
229 move:[8] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
230 atop:[13] added b
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
231 move:[11] added d
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
232 working directory is now at 0fb68c8390f6
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
233
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
234 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
235 @ 15:0fb68c8390f6 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
236 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
237 o 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
238 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
239 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
240 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
241 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
242 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
243 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
244 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
245
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
246 Conlicts -> resolve -> continue -> conflicts -> resolve -> continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
247 Test multiple conflicts in one evolve
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
248
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
249 $ for ch in f g h; do echo foo > $ch; hg add $ch; hg ci -m "added "$ch; done;
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
250
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
251 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
252 @ 18:1519cf722575 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
253 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
254 o 17:04c32ddd9b44 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
255 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
256 o 16:29139ab665e3 added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
257 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
258 o 15:0fb68c8390f6 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
259 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
260 o 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
261 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
262 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
263 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
264 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
265 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
266 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
267 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
268
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
269 $ hg up 'desc("added c")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
270 1 files updated, 0 files merged, 4 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
271
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
272 $ echo bar > f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
273 $ echo bar > h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
274 $ hg add f h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
275 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
276 4 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
277
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
278 $ hg glog
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
279 @ 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
280 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
281 | * 18:1519cf722575 added h
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
282 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
283 | * 17:04c32ddd9b44 added g
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
284 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
285 | * 16:29139ab665e3 added f
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
286 | | () draft orphan
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
287 | * 15:0fb68c8390f6 added d
6042
1cbafebe874b tests: add {instabilities} to the common glog alias
Anton Shestakov <av6@dwimlabs.net>
parents: 6041
diff changeset
288 | | () draft orphan
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
289 | x 14:7bf9d72ff3bf added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
290 |/ () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
291 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
292 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
293 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
294 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
295 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
296 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
297
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
298 $ hg evolve --all --update
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
299 move:[15] added d
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
300 atop:[19] added c
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
301 move:[16] added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
302 merging f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
303 warning: conflicts while merging f! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
304 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
305 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
306 [1]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
307
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
308 $ echo foo > f
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
309 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
310 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
311 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
312 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
313 evolving 16:29139ab665e3 "added f"
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
314 move:[17] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
315 atop:[21] added f
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
316 move:[18] added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
317 merging h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
318 warning: conflicts while merging h! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
319 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
320 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
321 [1]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
322
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
323 $ echo foo > h
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
324 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
325 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
326 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
327 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
328 evolving 18:1519cf722575 "added h"
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
329 working directory is now at 0eb2b6434bd7
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
330
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
331 Make sure, confirmopt is respected while continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
332
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
333 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
334 @ 23:0eb2b6434bd7 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
335 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
336 o 22:d4c17c25a1c7 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
337 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
338 o 21:602e4bd1e5aa added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
339 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
340 o 20:5cf56d246d18 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
341 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
342 o 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
343 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
344 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
345 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
346 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
347 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
348 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
349 () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
350
6197
f1d4c9eddcc1 tests: use desc() revset instead of node hashes in test-evolve-continue.t
Luke Granger-Brown <hg@lukegb.com>
parents: 6042
diff changeset
351 $ hg up 'desc("added f")'
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
352 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
353 $ echo bar > g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
354 $ hg add g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
355 $ hg amend
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
356 2 new orphan changesets
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
357
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
358 $ hg evolve --all --update --confirm << EOF
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
359 > y
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
360 > EOF
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
361 move:[22] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
362 atop:[24] added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
363 perform evolve? [Ny] y
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
364 merging g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
365 warning: conflicts while merging g! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
366 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
367 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
368 [1]
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
369
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
370 $ echo foo > g
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
371 $ hg resolve -m
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
372 (no more unresolved files)
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
373 continue: hg evolve --continue
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
374
4576
96ce1030d2fb tests: add --update to hg evolve to reduce test changes for the next patch
Anton Shestakov <av6@dwimlabs.net>
parents: 4505
diff changeset
375 $ hg evolve --continue << EOF
3493
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
376 > y
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
377 > EOF
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
378 evolving 22:d4c17c25a1c7 "added g"
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
379 move:[23] added h
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
380 atop:[25] added g
3493
4544067b831b evolve: make `hg evolve --continue` respect `--confirm`
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3492
diff changeset
381 perform evolve? [Ny] y
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
382 working directory is now at cc583f773dc4
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
383
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
384 $ hg glog
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
385 @ 26:cc583f773dc4 added h
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
386 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
387 o 25:84772f0dfa79 added g
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
388 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
389 o 24:d074fc123610 added f
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
390 | () draft
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
391 o 20:5cf56d246d18 added d
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
392 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
393 o 19:ebc872a542e5 added c
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
394 | () draft
6316
b1d1f4ade142 evolve: don't embed graft data when completing interrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6198
diff changeset
395 o 13:aaa724b65a25 added b
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
396 | () draft
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
397 o 12:53b632d203d8 added a
3491
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
398 | () draft
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
399 o 0:8fa14d15e168 added hgignore
92df1aac8c7f tests: add more tests to test-evolve-continue.t
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3490
diff changeset
400 () draft
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
401
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
402 Testing `evolve --continue` after `hg next --evolve`
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
403
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
404 $ hg up .^^
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
405 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
406 $ echo foobar > g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
407 $ hg amend
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
408 2 new orphan changesets
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
409
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
410 $ hg next --evolve
6198
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
411 move:[25] added g
cc80747ef3c8 evolve: support hg continue
Luke Granger-Brown <hg@lukegb.com>
parents: 6197
diff changeset
412 atop:[27] added f
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
413 merging g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
414 warning: conflicts while merging g! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
415 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
416 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
417 [1]
3502
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
418 $ echo foo > g
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
419 $ hg resolve -m
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
420 (no more unresolved files)
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
421 continue: hg evolve --continue
8cf1020bd4f9 tests: add test showing `evolve --continue` after `next --evolve` is broken
Pulkit Goyal <7895pulkit@gmail.com>
parents: 3494
diff changeset
422 $ hg evolve --continue
6317
53d63b608230 evolve: stop preserving all of {extras} for uninterrupted evolve operations
Matt Harbison <matt_harbison@yahoo.com>
parents: 6316
diff changeset
423 evolving 25:84772f0dfa79 "added g"
4425
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
424
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
425 Testing that interrupted evolve don't get confused about copies (issue5930):
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
426 ----------------------------------------------------------------------------
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
427
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
428 $ cd ..
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
429 $ hg init issue5930
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
430 $ cd issue5930
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
431 $ echo a > a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
432 $ hg ci -Am "added a"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
433 adding a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
434 $ hg cp a b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
435 $ hg ci -m "rename a to b"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
436
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
437 $ hg up 0 -q
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
438 $ echo c > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
439 $ hg ci -Am "added c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
440 adding c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
441 created new head
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
442
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
443 $ echo d > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
444 $ echo d > d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
445 $ hg ci -Am "added d, modified c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
446 adding d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
447 $ hg up .^
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
448 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
449
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
450 $ hg log -G -T "{rev} {desc}\n"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
451 o 3 added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
452 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
453 @ 2 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
454 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
455 | o 1 rename a to b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
456 |/
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
457 o 0 added a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
458
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
459 $ hg rebase -r . -d 1
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
460 rebasing 2:29edef26570b "added c"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
461 1 new orphan changesets
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
462 $ echo conflict > c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
463 $ hg amend
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
464
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
465 $ hg log -G -T "{rev} {desc}\n"
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
466 @ 5 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
467 |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
468 | * 3 added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
469 | |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
470 | x 2 added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
471 | |
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
472 o | 1 rename a to b
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
473 |/
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
474 o 0 added a
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
475
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
476
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
477 $ hg evolve
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
478 move:[3] added d, modified c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
479 atop:[5] added c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
480 merging c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
481 warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
4676
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
482 unresolved merge conflicts
b6c819facbe8 evolvecmd: the proper way to deal with conflicts is to resolve them
Anton Shestakov <av6@dwimlabs.net>
parents: 4577
diff changeset
483 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
484 [1]
4425
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
485
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
486 Status mentions file 'b' (copied from 'a') here, even though it wasn't
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
487 affected by the evolved changeset (nor was 'a')
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
488
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
489 $ hg st -C
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
490 M c
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
491 A d
43c24cf6d24b evolve: add tests which shows evolve can get confused about copies (issue5930)
Sushil khanchi <sushilkhanchi97@gmail.com>
parents: 4122
diff changeset
492 ? c.orig
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
493
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
494 $ cd ..
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
495 $ hg init transitive-renames
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
496 $ cd transitive-renames
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
497 $ echo 1 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
498 $ echo 1 > b
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
499 $ hg ci -Aqm initial
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
500 $ echo 2 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
501 $ hg mv b c
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
502 $ hg ci -m 'rename b to c'
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
503 $ echo 3 > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
504 $ hg mv c d
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
505 $ hg ci -m 'rename c to d'
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
506 $ hg prev -q
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
507 $ echo 2b > a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
508 $ hg amend -q
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
509 1 new orphan changesets
5962
b68789e8c535 tests: spell out hg commands for readability
Anton Shestakov <av6@dwimlabs.net>
parents: 5777
diff changeset
510 $ hg evolve -q
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
511 warning: conflicts while merging a! (edit, then use 'hg resolve --mark')
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
512 unresolved merge conflicts
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
513 (see 'hg help evolve.interrupted')
5747
8e4f6354b316 tests: back out changeset b3d9e6c805d6
Anton Shestakov <av6@dwimlabs.net>
parents: 5722
diff changeset
514 [1]
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
515 $ hg st -C
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
516 M a
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
517 A d
5011
04104042c6ad evolve: delete redundant and incorrect code for updating dirstate
Martin von Zweigbergk <martinvonz@google.com>
parents: 5010
diff changeset
518 c
5010
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
519 R c
effce0a1f5bd tests: demonstrate how evolve loses transitive copies when interrupted
Martin von Zweigbergk <martinvonz@google.com>
parents: 4676
diff changeset
520 ? a.orig