comparison tests/test-evolve-abort-phasediv.t @ 3771:1f339d81aabd

tests: add more tests related to aborting while resolving phase-divergence The tests shows the something is still broken related to abort while resolving phase-divergence which will be fixed in upcoming patches.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 24 May 2018 00:58:35 +0530
parents 2bc60fcac354
children 6240579fd0c0
comparison
equal deleted inserted replaced
3770:eb928f5728c4 3771:1f339d81aabd
212 |/ () public 212 |/ () public
213 o 1:c7586e2a9264 added a 213 o 1:c7586e2a9264 added a
214 | () public 214 | () public
215 o 0:8fa14d15e168 added hgignore 215 o 0:8fa14d15e168 added hgignore
216 () public 216 () public
217
218 When there are multiple conflicted phase-divergence resolution and we abort
219 after resolving one of them
220 ----------------------------------------------------------------------------
221
222 $ hg up e44ebefe4f54
223 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
224 $ echo foobar > c
225 $ hg amend
226
227 $ hg glog --hidden
228 @ 10:ef9b72b9b42c added d
229 | () draft
230 | * 9:28cd06b3f801 added c
231 |/ () draft
232 | x 8:9ff8adbe8a24 added c
233 |/ () draft
234 | x 7:e44ebefe4f54 added d
235 |/ () draft
236 | x 6:ddba58020bc0 added d
237 |/ () draft
238 | x 5:cfe30edc6125 added d
239 |/ () draft
240 | o 4:c41c793e0ef1 added d
241 | | () public
242 | o 3:ca1b80f7960a added c
243 | | () public
244 | o 2:b1661037fa25 added b
245 |/ () public
246 o 1:c7586e2a9264 added a
247 | () public
248 o 0:8fa14d15e168 added hgignore
249 () public
250
251 $ hg evolve --phase-divergent --all
252 recreate:[9] added c
253 atop:[3] added c
254 rebasing to destination parent: b1661037fa25
255 merging b
256 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
257 evolution failed!
258 fix conflict then run 'hg evolve --continue' or use `hg evolve --abort`
259 abort: unresolved merge conflicts (see hg help resolve)
260 [255]
261
262 $ echo watwat > c
263 $ hg resolve -m
264 (no more unresolved files)
265 continue: hg evolve --continue
266 $ hg evolve --continue
267 evolving 9:28cd06b3f801 "added c"
268 computing new diff
269 committed as 95d746965290
270 recreate:[10] added d
271 atop:[4] added d
272 rebasing to destination parent: ca1b80f7960a
273 merging c
274 warning: conflicts while merging c! (edit, then use 'hg resolve --mark')
275 evolution failed!
276 fix conflict then run 'hg evolve --continue' or use `hg evolve --abort`
277 abort: unresolved merge conflicts (see hg help resolve)
278 [255]
279
280 $ hg evolve --abort
281 evolve aborted
282 working directory is now at ef9b72b9b42c
283
284 $ hg glog --hidden
285 o 11:95d746965290 phase-divergent update to ca1b80f7960a:
286 |
287 | added c
288 | () draft
289 | @ 10:ef9b72b9b42c added d
290 | | () draft
291 | | x 9:28cd06b3f801 added c
292 | |/ () draft
293 | | x 8:9ff8adbe8a24 added c
294 | |/ () draft
295 | | x 7:e44ebefe4f54 added d
296 | |/ () draft
297 | | x 6:ddba58020bc0 added d
298 | |/ () draft
299 | | x 5:cfe30edc6125 added d
300 | |/ () draft
301 +---o 4:c41c793e0ef1 added d
302 | | () public
303 o | 3:ca1b80f7960a added c
304 | | () public
305 o | 2:b1661037fa25 added b
306 |/ () public
307 o 1:c7586e2a9264 added a
308 | () public
309 o 0:8fa14d15e168 added hgignore
310 () public