Mercurial > evolve
comparison tests/test-stabilize-result.t @ 3914:96945ea908df stable
branching: merge default into stable
The stable branch of Mercurial core now contains Mercurial 4.7 so evolve branch
policy requires this merge. The @ bookmark is in the right location, so people
doing clone will get to the latest release.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 31 Jul 2018 12:52:06 +0200 |
parents | 629558d09898 |
children | f7afd3a158e3 25981fae92f9 |
comparison
equal
deleted
inserted
replaced
3901:f2b8429db565 | 3914:96945ea908df |
---|---|
79 $ hg evolve | 79 $ hg evolve |
80 move:[4] newer a | 80 move:[4] newer a |
81 atop:[5] changea | 81 atop:[5] changea |
82 merging a | 82 merging a |
83 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') | 83 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
84 evolve failed! | 84 fix conflicts and see `hg help evolve.interrupted` |
85 fix conflict and run 'hg evolve --continue' or use 'hg evolve --abort' to abort | 85 [1] |
86 abort: unresolved merge conflicts (see hg help resolve) | |
87 [255] | |
88 $ hg revert -r "orphan()" a | 86 $ hg revert -r "orphan()" a |
89 $ hg diff | 87 $ hg diff |
90 diff -r 66719795a494 a | 88 diff -r 66719795a494 a |
91 --- a/a Thu Jan 01 00:00:00 1970 +0000 | 89 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
92 +++ b/a Thu Jan 01 00:00:00 1970 +0000 | 90 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
237 o 0:07f494440405@default(public) bk:[] adda | 235 o 0:07f494440405@default(public) bk:[] adda |
238 | 236 |
239 $ echo 'babar' >> a | 237 $ echo 'babar' >> a |
240 $ hg amend | 238 $ hg amend |
241 $ hg up --hidden 3932c176bbaa | 239 $ hg up --hidden 3932c176bbaa |
242 updating to a hidden changeset 3932c176bbaa | 240 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
241 updated to hidden changeset 3932c176bbaa | |
243 (hidden revision '3932c176bbaa' was rewritten as: d2f173e25686) | 242 (hidden revision '3932c176bbaa' was rewritten as: d2f173e25686) |
244 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
245 working directory parent is obsolete! (3932c176bbaa) | 243 working directory parent is obsolete! (3932c176bbaa) |
246 (use 'hg evolve' to update to its successor: d2f173e25686) | 244 (use 'hg evolve' to update to its successor: d2f173e25686) |
247 $ mv a a.old | 245 $ mv a a.old |
248 $ echo 'jungle' > a | 246 $ echo 'jungle' > a |
249 $ cat a.old >> a | 247 $ cat a.old >> a |
288 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; | 286 hg commit -m "`hg log -r eacc9c8240fe --template={desc}`"; |
289 $ hg evolve -v --content-divergent | 287 $ hg evolve -v --content-divergent |
290 merge:[14] More addition | 288 merge:[14] More addition |
291 with: [13] More addition | 289 with: [13] More addition |
292 base: [12] More addition | 290 base: [12] More addition |
293 merging content-divergent changeset | 291 merging "other" content-divergent changeset 'd2f173e25686' |
294 resolving manifests | 292 resolving manifests |
295 merging a | 293 merging a |
296 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | 294 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
297 amending changeset eacc9c8240fe | |
298 committing files: | 295 committing files: |
299 a | 296 a |
300 committing manifest | 297 committing manifest |
301 committing changelog | 298 committing changelog |
302 committed changeset 15:f344982e63c4 | 299 working directory is now at 4d6ed26797bc |
303 working directory is now at f344982e63c4 | |
304 $ hg st | 300 $ hg st |
305 $ glog | 301 $ glog |
306 @ 15:f344982e63c4@default(draft) bk:[] More addition | 302 @ 15:4d6ed26797bc@default(draft) bk:[] More addition |
307 | | 303 | |
308 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: | 304 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: |
309 | | | 305 | | |
310 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | 306 o | 7:7bc2f5967f5e@default(draft) bk:[] add c |
311 | | | 307 | | |
314 o 5:66719795a494@default(public) bk:[changea] changea | 310 o 5:66719795a494@default(public) bk:[changea] changea |
315 | | 311 | |
316 o 0:07f494440405@default(public) bk:[] adda | 312 o 0:07f494440405@default(public) bk:[] adda |
317 | 313 |
318 $ hg summary | 314 $ hg summary |
319 parent: 15:f344982e63c4 tip | 315 parent: 15:4d6ed26797bc tip |
320 More addition | 316 More addition |
321 branch: default | 317 branch: default |
322 commit: (clean) | 318 commit: (clean) |
323 update: 2 new changesets, 2 branch heads (merge) | 319 update: 2 new changesets, 2 branch heads (merge) |
324 phases: 3 draft | 320 phases: 3 draft |
325 $ hg export . | 321 $ hg export . |
326 # HG changeset patch | 322 # HG changeset patch |
327 # User test | 323 # User test |
328 # Date 0 0 | 324 # Date 0 0 |
329 # Thu Jan 01 00:00:00 1970 +0000 | 325 # Thu Jan 01 00:00:00 1970 +0000 |
330 # Node ID f344982e63c462b1e44c0371c804685389e673a9 | 326 # Node ID 4d6ed26797bc392c0099e48402a5134e669f1a60 |
331 # Parent 7bc2f5967f5e4ed277f60a89b7b04cc5d6407ced | 327 # Parent 7bc2f5967f5e4ed277f60a89b7b04cc5d6407ced |
332 More addition | 328 More addition |
333 | 329 |
334 diff -r 7bc2f5967f5e -r f344982e63c4 a | 330 diff -r 7bc2f5967f5e -r 4d6ed26797bc a |
335 --- a/a Thu Jan 01 00:00:00 1970 +0000 | 331 --- a/a Thu Jan 01 00:00:00 1970 +0000 |
336 +++ b/a Thu Jan 01 00:00:00 1970 +0000 | 332 +++ b/a Thu Jan 01 00:00:00 1970 +0000 |
337 @@ -1,1 +1,9 @@ | 333 @@ -1,1 +1,9 @@ |
338 +jungle | 334 +jungle |
339 a | 335 a |
347 | 343 |
348 Check conflict during divergence resolution | 344 Check conflict during divergence resolution |
349 ------------------------------------------------- | 345 ------------------------------------------------- |
350 | 346 |
351 $ hg up --hidden 3932c176bbaa | 347 $ hg up --hidden 3932c176bbaa |
352 updating to a hidden changeset 3932c176bbaa | |
353 (hidden revision '3932c176bbaa' was rewritten as: f344982e63c4) | |
354 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 348 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
349 updated to hidden changeset 3932c176bbaa | |
350 (hidden revision '3932c176bbaa' was rewritten as: 4d6ed26797bc) | |
355 working directory parent is obsolete! (3932c176bbaa) | 351 working directory parent is obsolete! (3932c176bbaa) |
356 (use 'hg evolve' to update to its successor: f344982e63c4) | 352 (use 'hg evolve' to update to its successor: 4d6ed26797bc) |
357 $ echo 'gotta break' >> a | 353 $ echo 'gotta break' >> a |
358 $ hg amend | 354 $ hg amend |
359 2 new content-divergent changesets | 355 2 new content-divergent changesets |
360 # reamend so that the case is not the first precursor. | 356 # reamend so that the case is not the first precursor. |
361 $ hg amend -m "More addition (2)" | 357 $ hg amend -m "More addition (2)" |
362 $ hg phase 'contentdivergent()' | 358 $ hg phase 'contentdivergent()' |
363 15: draft | 359 15: draft |
364 17: draft | 360 17: draft |
361 | |
362 $ glog | |
363 @ 17:0b336205a5d0@default(draft) bk:[] More addition (2) | |
364 | | |
365 | * 15:4d6ed26797bc@default(draft) bk:[] More addition | |
366 |/ | |
367 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: | |
368 | | | |
369 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | |
370 | | | |
371 | o 6:1cf0aacfd363@default(public) bk:[] newer a | |
372 |/ | |
373 o 5:66719795a494@default(public) bk:[changea] changea | |
374 | | |
375 o 0:07f494440405@default(public) bk:[] adda | |
376 | |
377 | |
365 $ hg evolve -qn --content-divergent | 378 $ hg evolve -qn --content-divergent |
366 hg update -c 0b336205a5d0 && | 379 hg update -c 0b336205a5d0 && |
367 hg merge f344982e63c4 && | 380 hg merge 4d6ed26797bc && |
368 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and f344982e63c4"&& | 381 hg commit -m "auto merge resolving conflict between 0b336205a5d0 and 4d6ed26797bc"&& |
369 hg up -C 3932c176bbaa && | 382 hg up -C 3932c176bbaa && |
370 hg revert --all --rev tip && | 383 hg revert --all --rev tip && |
371 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; | 384 hg commit -m "`hg log -r 0b336205a5d0 --template={desc}`"; |
372 $ hg evolve --content-divergent | 385 $ hg evolve --content-divergent |
373 merge:[17] More addition (2) | 386 merge:[17] More addition (2) |
374 with: [15] More addition | 387 with: [15] More addition |
375 base: [12] More addition | 388 base: [12] More addition |
389 merging "other" content-divergent changeset '4d6ed26797bc' | |
376 merging a | 390 merging a |
377 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') | 391 warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
378 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | 392 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
379 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abort | 393 fix conflicts and see `hg help evolve.interrupted` |
380 abort: merge conflict between several amendments (this is not automated yet) | 394 [1] |
381 (/!\ You can try: | 395 |
382 /!\ * manual merge + resolve => new cset X | 396 $ cat > a <<EOF |
383 /!\ * hg up to the parent of the amended changeset (which are named W and Z) | 397 > jungle |
384 /!\ * hg revert --all -r X | 398 > a |
385 /!\ * hg ci -m "same message as the amended changeset" => new cset Y | 399 > flore |
386 /!\ * hg prune -n Y W Z | 400 > arthur |
387 ) | 401 > zephir |
388 [255] | 402 > some |
403 > less | |
404 > conflict | |
405 > babar | |
406 > EOF | |
407 | |
408 $ hg resolve -m | |
409 (no more unresolved files) | |
410 continue: hg evolve --continue | |
411 $ hg evolve --continue | |
412 working directory is now at e8746835a2a1 | |
413 $ glog | |
414 @ 18:e8746835a2a1@default(draft) bk:[] More addition (2) | |
415 | | |
416 | o 11:8fc63fe1f297@default(draft) bk:[] phase-divergent update to 1cf0aacfd363: | |
417 | | | |
418 o | 7:7bc2f5967f5e@default(draft) bk:[] add c | |
419 | | | |
420 | o 6:1cf0aacfd363@default(public) bk:[] newer a | |
421 |/ | |
422 o 5:66719795a494@default(public) bk:[changea] changea | |
423 | | |
424 o 0:07f494440405@default(public) bk:[] adda | |
425 | |
426 $ hg exp | |
427 # HG changeset patch | |
428 # User test | |
429 # Date 0 0 | |
430 # Thu Jan 01 00:00:00 1970 +0000 | |
431 # Node ID e8746835a2a13122bc8c0ed84fe4ee35649af25d | |
432 # Parent 7bc2f5967f5e4ed277f60a89b7b04cc5d6407ced | |
433 More addition (2) | |
434 | |
435 diff -r 7bc2f5967f5e -r e8746835a2a1 a | |
436 --- a/a Thu Jan 01 00:00:00 1970 +0000 | |
437 +++ b/a Thu Jan 01 00:00:00 1970 +0000 | |
438 @@ -1,1 +1,9 @@ | |
439 +jungle | |
440 a | |
441 +flore | |
442 +arthur | |
443 +zephir | |
444 +some | |
445 +less | |
446 +conflict | |
447 +babar |