Mercurial > evolve
comparison tests/test-stabilize-result.t @ 3105:f5d472b7e800 mercurial-4.3
test-compat: revert output changes related to temporary amend commit
This backed out changeset 06844693bb21 and other related changes.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 20 Oct 2017 19:32:18 +0200 |
parents | 945a0989e41b |
children | a867d59ea97a |
comparison
equal
deleted
inserted
replaced
3104:3dd5a6f83f8b | 3105:f5d472b7e800 |
---|---|
28 $ echo a >> a | 28 $ echo a >> a |
29 $ hg amend -m changea | 29 $ hg amend -m changea |
30 1 new orphan changesets | 30 1 new orphan changesets |
31 $ hg evolve -v --confirm | 31 $ hg evolve -v --confirm |
32 move:[2] changea | 32 move:[2] changea |
33 atop:[3] changea | 33 atop:[4] changea |
34 perform evolve? [Ny] n | 34 perform evolve? [Ny] n |
35 abort: evolve aborted by user | 35 abort: evolve aborted by user |
36 [255] | 36 [255] |
37 $ echo y | hg evolve -v --confirm --config ui.interactive=True | 37 $ echo y | hg evolve -v --confirm --config ui.interactive=True |
38 move:[2] changea | 38 move:[2] changea |
39 atop:[3] changea | 39 atop:[4] changea |
40 perform evolve? [Ny] y | 40 perform evolve? [Ny] y |
41 hg rebase -r cce2c55b8965 -d fb9d051ec0a4 | 41 hg rebase -r cce2c55b8965 -d fb9d051ec0a4 |
42 resolving manifests | 42 resolving manifests |
43 $ glog --hidden | 43 $ glog --hidden |
44 @ 3:fb9d051ec0a4@default(draft) bk:[changea] changea | 44 @ 4:fb9d051ec0a4@default(draft) bk:[changea] changea |
45 | | 45 | |
46 | x 2:cce2c55b8965@default(draft) bk:[] changea | 46 | x 3:c5727dbded3c@default(draft) bk:[] temporary amend commit for 102a90ea7b4a |
47 | | | 47 | | |
48 | | x 2:cce2c55b8965@default(draft) bk:[] changea | |
49 | |/ | |
48 | x 1:102a90ea7b4a@default(draft) bk:[] addb | 50 | x 1:102a90ea7b4a@default(draft) bk:[] addb |
49 |/ | 51 |/ |
50 o 0:07f494440405@default(draft) bk:[] adda | 52 o 0:07f494440405@default(draft) bk:[] adda |
51 | 53 |
52 $ hg debugobsolete | 54 $ hg debugobsolete |
53 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (*) {'ef1': '*', 'user': 'test'} (glob) | 55 102a90ea7b4a3361e4082ed620918c261189a36a fb9d051ec0a450a4aa2ffc8c324979832ef88065 0 (*) {'ef1': '*', 'user': 'test'} (glob) |
56 c5727dbded3c3a6877cf60d6bb552a76812cb844 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (*) {'ef1': '*', 'user': 'test'} (glob) | |
54 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (*) {'ef1': '*', 'user': 'test'} (glob) | 57 cce2c55b896511e0b6e04173c9450ba822ebc740 0 {102a90ea7b4a3361e4082ed620918c261189a36a} (*) {'ef1': '*', 'user': 'test'} (glob) |
55 | 58 |
56 Test evolve with conflict | 59 Test evolve with conflict |
57 | 60 |
58 $ ls | 61 $ ls |
68 $ echo 'newer a' >> a | 71 $ echo 'newer a' >> a |
69 $ hg ci -m 'newer a' | 72 $ hg ci -m 'newer a' |
70 $ hg gdown | 73 $ hg gdown |
71 gdown have been deprecated in favor of previous | 74 gdown have been deprecated in favor of previous |
72 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 75 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
73 [3] changea | 76 [4] changea |
74 $ echo 'a' > a | 77 $ echo 'a' > a |
75 $ hg amend | 78 $ hg amend |
76 1 new orphan changesets | 79 1 new orphan changesets |
77 $ hg evolve | 80 $ hg evolve |
78 move:[4] newer a | 81 move:[5] newer a |
79 atop:[5] changea | 82 atop:[7] changea |
80 merging a | 83 merging a |
81 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') | 84 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
82 evolve failed! | 85 evolve failed! |
83 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort | 86 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort |
84 abort: unresolved merge conflicts (see hg help resolve) | 87 abort: unresolved merge conflicts (see hg help resolve) |
91 @@ -1,1 +1,3 @@ | 94 @@ -1,1 +1,3 @@ |
92 a | 95 a |
93 +a | 96 +a |
94 +newer a | 97 +newer a |
95 $ hg evolve --continue | 98 $ hg evolve --continue |
96 grafting 4:3655f0f50885 "newer a" | 99 grafting 5:3655f0f50885 "newer a" |
97 abort: unresolved merge conflicts (see 'hg help resolve') | 100 abort: unresolved merge conflicts (see 'hg help resolve') |
98 [255] | 101 [255] |
99 $ hg resolve -m a | 102 $ hg resolve -m a |
100 (no more unresolved files) | 103 (no more unresolved files) |
101 $ hg evolve --continue | 104 $ hg evolve --continue |
102 grafting 4:3655f0f50885 "newer a" | 105 grafting 5:3655f0f50885 "newer a" |
103 | 106 |
104 Stabilize latecomer with different parent | 107 Stabilize latecomer with different parent |
105 ========================================= | 108 ========================================= |
106 | 109 |
107 (the same-parent case is handled in test-evolve.t) | 110 (the same-parent case is handled in test-evolve.t) |
108 | 111 |
109 $ glog | 112 $ glog |
110 @ 6:1cf0aacfd363@default(draft) bk:[] newer a | 113 @ 8:1cf0aacfd363@default(draft) bk:[] newer a |
111 | | 114 | |
112 o 5:66719795a494@default(draft) bk:[changea] changea | 115 o 7:66719795a494@default(draft) bk:[changea] changea |
113 | | 116 | |
114 o 0:07f494440405@default(draft) bk:[] adda | 117 o 0:07f494440405@default(draft) bk:[] adda |
115 | 118 |
116 Add another commit | 119 Add another commit |
117 | 120 |
118 $ hg gdown | 121 $ hg gdown |
119 gdown have been deprecated in favor of previous | 122 gdown have been deprecated in favor of previous |
120 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 123 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
121 [5] changea | 124 [7] changea |
122 $ echo 'c' > c | 125 $ echo 'c' > c |
123 $ hg add c | 126 $ hg add c |
124 $ hg commit -m 'add c' | 127 $ hg commit -m 'add c' |
125 created new head | 128 created new head |
126 | 129 |
127 Get a successors of 8 on it | 130 Get a successors of 8 on it |
128 | 131 |
129 $ hg grab 1cf0aacfd363 | 132 $ hg grab 1cf0aacfd363 |
130 rebasing 6:1cf0aacfd363 "newer a" | 133 rebasing 8:1cf0aacfd363 "newer a" |
131 ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) | 134 ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) |
132 | 135 |
133 Add real change to the successors | 136 Add real change to the successors |
134 | 137 |
135 $ echo 'babar' >> a | 138 $ echo 'babar' >> a |
138 Make precursors public | 141 Make precursors public |
139 | 142 |
140 $ hg phase --hidden --public 1cf0aacfd363 | 143 $ hg phase --hidden --public 1cf0aacfd363 |
141 1 new phase-divergent changesets | 144 1 new phase-divergent changesets |
142 $ glog | 145 $ glog |
143 @ 9:(73b15c7566e9|d5c7ef82d003)@default\(draft\) bk:\[\] newer a (re) | 146 @ 12:(73b15c7566e9|d5c7ef82d003)@default\(draft\) bk:\[\] newer a (re) |
144 | | 147 | |
145 o 7:7bc2f5967f5e@default(draft) bk:[] add c | 148 o 9:7bc2f5967f5e@default(draft) bk:[] add c |
146 | | 149 | |
147 | o 6:1cf0aacfd363@default(public) bk:[] newer a | 150 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
148 |/ | 151 |/ |
149 o 5:66719795a494@default(public) bk:[changea] changea | 152 o 7:66719795a494@default(public) bk:[changea] changea |
150 | | 153 | |
151 o 0:07f494440405@default(public) bk:[] adda | 154 o 0:07f494440405@default(public) bk:[] adda |
152 | 155 |
153 | 156 |
154 Stabilize! | 157 Stabilize! |
155 | 158 |
156 $ hg evolve --any --dry-run --phasedivergent | 159 $ hg evolve --any --dry-run --phasedivergent |
157 recreate:[9] newer a | 160 recreate:[12] newer a |
158 atop:[6] newer a | 161 atop:[8] newer a |
159 hg rebase --rev d5c7ef82d003 --dest 66719795a494; | 162 hg rebase --rev d5c7ef82d003 --dest 66719795a494; |
160 hg update 1cf0aacfd363; | 163 hg update 1cf0aacfd363; |
161 hg revert --all --rev d5c7ef82d003; | 164 hg revert --all --rev d5c7ef82d003; |
162 hg commit --msg "bumped update to %s" (no-eol) | 165 hg commit --msg "bumped update to %s" (no-eol) |
163 $ hg evolve --any --confirm --phasedivergent | 166 $ hg evolve --any --confirm --phasedivergent |
164 recreate:[9] newer a | 167 recreate:[12] newer a |
165 atop:[6] newer a | 168 atop:[8] newer a |
166 perform evolve? [Ny] n | 169 perform evolve? [Ny] n |
167 abort: evolve aborted by user | 170 abort: evolve aborted by user |
168 [255] | 171 [255] |
169 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phasedivergent | 172 $ echo y | hg evolve --any --confirm --config ui.interactive=True --phasedivergent |
170 recreate:[9] newer a | 173 recreate:[12] newer a |
171 atop:[6] newer a | 174 atop:[8] newer a |
172 perform evolve? [Ny] y | 175 perform evolve? [Ny] y |
173 rebasing to destination parent: 66719795a494 | 176 rebasing to destination parent: 66719795a494 |
174 computing new diff | 177 computing new diff |
175 committed as c2c1151aa854 | 178 committed as c2c1151aa854 |
176 working directory is now at c2c1151aa854 | 179 working directory is now at c2c1151aa854 |
177 $ glog | 180 $ glog |
178 @ 11:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: | 181 @ 14:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: |
179 | | 182 | |
180 | o 7:7bc2f5967f5e@default(draft) bk:[] add c | 183 | o 9:7bc2f5967f5e@default(draft) bk:[] add c |
181 | | | 184 | | |
182 o | 6:1cf0aacfd363@default(public) bk:[] newer a | 185 o | 8:1cf0aacfd363@default(public) bk:[] newer a |
183 |/ | 186 |/ |
184 o 5:66719795a494@default(public) bk:[changea] changea | 187 o 7:66719795a494@default(public) bk:[changea] changea |
185 | | 188 | |
186 o 0:07f494440405@default(public) bk:[] adda | 189 o 0:07f494440405@default(public) bk:[] adda |
187 | 190 |
188 | 191 |
189 Stabilize divergent changesets with same parent | 192 Stabilize divergent changesets with same parent |
200 > less | 203 > less |
201 > conflict | 204 > conflict |
202 > EOF | 205 > EOF |
203 $ hg ci -m 'More addition' | 206 $ hg ci -m 'More addition' |
204 $ glog | 207 $ glog |
205 @ 12:3932c176bbaa@default(draft) bk:[] More addition | 208 @ 15:3932c176bbaa@default(draft) bk:[] More addition |
206 | | 209 | |
207 | o 11:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: | 210 | o 14:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: |
208 | | | 211 | | |
209 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | 212 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
210 | | | 213 | | |
211 | o 6:1cf0aacfd363@default(public) bk:[] newer a | 214 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
212 |/ | 215 |/ |
213 o 5:66719795a494@default(public) bk:[changea] changea | 216 o 7:66719795a494@default(public) bk:[changea] changea |
214 | | 217 | |
215 o 0:07f494440405@default(public) bk:[] adda | 218 o 0:07f494440405@default(public) bk:[] adda |
216 | 219 |
217 $ echo 'babar' >> a | 220 $ echo 'babar' >> a |
218 $ hg amend | 221 $ hg amend |
225 $ cat a.old >> a | 228 $ cat a.old >> a |
226 $ rm a.old | 229 $ rm a.old |
227 $ hg amend | 230 $ hg amend |
228 2 new content-divergent changesets | 231 2 new content-divergent changesets |
229 $ glog | 232 $ glog |
230 @ 14:eacc9c8240fe@default(draft) bk:[] More addition | 233 @ 19:eacc9c8240fe@default(draft) bk:[] More addition |
231 | | 234 | |
232 | o 13:d2f173e25686@default(draft) bk:[] More addition | 235 | o 17:d2f173e25686@default(draft) bk:[] More addition |
233 |/ | 236 |/ |
234 | o 11:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: | 237 | o 14:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: |
235 | | | 238 | | |
236 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | 239 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
237 | | | 240 | | |
238 | o 6:1cf0aacfd363@default(public) bk:[] newer a | 241 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
239 |/ | 242 |/ |
240 o 5:66719795a494@default(public) bk:[changea] changea | 243 o 7:66719795a494@default(public) bk:[changea] changea |
241 | | 244 | |
242 o 0:07f494440405@default(public) bk:[] adda | 245 o 0:07f494440405@default(public) bk:[] adda |
243 | 246 |
244 | 247 |
245 Stabilize it | 248 Stabilize it |
246 | 249 |
247 $ hg evolve -qn --confirm --contentdivergent | 250 $ hg evolve -qn --confirm --contentdivergent |
248 merge:[14] More addition | 251 merge:[19] More addition |
249 with: [13] More addition | 252 with: [17] More addition |
250 base: [12] More addition | 253 base: [15] More addition |
251 perform evolve? [Ny] n | 254 perform evolve? [Ny] n |
252 abort: evolve aborted by user | 255 abort: evolve aborted by user |
253 [255] | 256 [255] |
254 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --contentdivergent | 257 $ echo y | hg evolve -qn --confirm --config ui.interactive=True --contentdivergent |
255 merge:[14] More addition | 258 merge:[19] More addition |
256 with: [13] More addition | 259 with: [17] More addition |
257 base: [12] More addition | 260 base: [15] More addition |
258 perform evolve? [Ny] y | 261 perform evolve? [Ny] y |
259 hg update -c eacc9c8240fe && | 262 hg update -c eacc9c8240fe && |
260 hg merge d2f173e25686 && | 263 hg merge d2f173e25686 && |
261 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&& | 264 hg commit -m "auto merge resolving conflict between eacc9c8240fe and d2f173e25686"&& |
262 hg up -C 3932c176bbaa && | 265 hg up -C 3932c176bbaa && |
263 hg revert --all --rev tip && | 266 hg revert --all --rev tip && |
264 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; | 267 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; |
265 $ hg evolve -v --contentdivergent | 268 $ hg evolve -v --contentdivergent |
266 merge:[14] More addition | 269 merge:[19] More addition |
267 with: [13] More addition | 270 with: [17] More addition |
268 base: [12] More addition | 271 base: [15] More addition |
269 merging divergent changeset | 272 merging divergent changeset |
270 resolving manifests | 273 resolving manifests |
271 merging a | 274 merging a |
272 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | 275 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
273 amending changeset eacc9c8240fe | 276 amending changeset eacc9c8240fe |
274 committing files: | 277 committing files: |
275 a | 278 a |
276 committing manifest | 279 committing manifest |
277 committing changelog | 280 committing changelog |
278 committed changeset 15:f344982e63c4 | 281 copying changeset 283ccd10e2b8 to 7bc2f5967f5e |
282 committing files: | |
283 a | |
284 committing manifest | |
285 committing changelog | |
286 committed changeset 21:f344982e63c4 | |
279 working directory is now at f344982e63c4 | 287 working directory is now at f344982e63c4 |
280 $ hg st | 288 $ hg st |
281 $ glog | 289 $ glog |
282 @ 15:f344982e63c4@default(draft) bk:[] More addition | 290 @ 21:f344982e63c4@default(draft) bk:[] More addition |
283 | | 291 | |
284 | o 11:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: | 292 | o 14:c2c1151aa854@default(draft) bk:[] bumped update to 1cf0aacfd363: |
285 | | | 293 | | |
286 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | 294 o | 9:7bc2f5967f5e@default(draft) bk:[] add c |
287 | | | 295 | | |
288 | o 6:1cf0aacfd363@default(public) bk:[] newer a | 296 | o 8:1cf0aacfd363@default(public) bk:[] newer a |
289 |/ | 297 |/ |
290 o 5:66719795a494@default(public) bk:[changea] changea | 298 o 7:66719795a494@default(public) bk:[changea] changea |
291 | | 299 | |
292 o 0:07f494440405@default(public) bk:[] adda | 300 o 0:07f494440405@default(public) bk:[] adda |
293 | 301 |
294 $ hg summary | 302 $ hg summary |
295 parent: 15:f344982e63c4 tip | 303 parent: 21:f344982e63c4 tip |
296 More addition | 304 More addition |
297 branch: default | 305 branch: default |
298 commit: (clean) | 306 commit: (clean) |
299 update: 2 new changesets, 2 branch heads (merge) | 307 update: 2 new changesets, 2 branch heads (merge) |
300 phases: 3 draft | 308 phases: 3 draft |
332 $ hg amend | 340 $ hg amend |
333 2 new content-divergent changesets | 341 2 new content-divergent changesets |
334 # reamend so that the case is not the first precursor. | 342 # reamend so that the case is not the first precursor. |
335 $ hg amend -m "More addition (2)" | 343 $ hg amend -m "More addition (2)" |
336 $ hg phase 'contentdivergent()' | 344 $ hg phase 'contentdivergent()' |
337 15: draft | 345 21: draft |
338 17: draft | 346 24: draft |
339 $ hg evolve -qn --contentdivergent | 347 $ hg evolve -qn --contentdivergent |
340 hg update -c 0b336205a5d0 && | 348 hg update -c 0b336205a5d0 && |
341 hg merge f344982e63c4 && | 349 hg merge f344982e63c4 && |
342 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&& | 350 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&& |
343 hg up -C 3932c176bbaa && | 351 hg up -C 3932c176bbaa && |
344 hg revert --all --rev tip && | 352 hg revert --all --rev tip && |
345 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; | 353 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; |
346 $ hg evolve --contentdivergent | 354 $ hg evolve --contentdivergent |
347 merge:[17] More addition (2) | 355 merge:[24] More addition (2) |
348 with: [15] More addition | 356 with: [21] More addition |
349 base: [12] More addition | 357 base: [15] More addition |
350 merging a | 358 merging a |
351 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') | 359 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
352 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | 360 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
353 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abort | 361 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abort |
354 abort: merge conflict between several amendments (this is not automated yet) | 362 abort: merge conflict between several amendments (this is not automated yet) |