comparison tests/test-evolve-content-divergent-basic.t @ 4553:aafd51f145ea mercurial-4.4

test-compat: adapt test output to 4.4
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 23 Apr 2019 12:28:32 +0200
parents f54bb6eaf5e6
children 79bc0f1a832e
comparison
equal deleted inserted replaced
4552:0eb80259f9cb 4553:aafd51f145ea
199 ------------------------- 199 -------------------------
200 200
201 Creating content-divergence with branch change where base, divergent and other 201 Creating content-divergence with branch change where base, divergent and other
202 have different branches 202 have different branches
203 203
204 $ hg branch -r . foobar 204 $ hg branch --force foobar
205 changed branch on 1 changesets 205 marked working directory as branch foobar
206 (branches are permanent and global, did you want a bookmark?)
207 $ hg amend
206 208
207 $ hg up c41c793e0ef1 --hidden 209 $ hg up c41c793e0ef1 --hidden
208 updating to a hidden changeset c41c793e0ef1
209 (hidden revision 'c41c793e0ef1' was rewritten as: 9e5dffcb3d48)
210 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 210 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
211 working directory parent is obsolete! (c41c793e0ef1) 211 working directory parent is obsolete! (c41c793e0ef1)
212 (use 'hg evolve' to update to its successor: 9e5dffcb3d48) 212 (use 'hg evolve' to update to its successor: bdeedce1f621)
213 $ echo bar > d 213 $ echo bar > d
214 $ hg branch watwat 214 $ hg branch watwat
215 marked working directory as branch watwat 215 marked working directory as branch watwat
216 $ hg amend 216 $ hg amend
217 2 new content-divergent changesets
218 217
219 $ hg glog 218 $ hg glog
220 @ 6:264b04f771fb added d 219 @ 6:264b04f771fb added d
221 | () [watwat] draft 220 | () [watwat] draft
222 | * 5:9e5dffcb3d48 added d 221 | o 5:bdeedce1f621 added d
223 |/ () [foobar] draft 222 |/ () [foobar] draft
224 o 3:ca1b80f7960a added c 223 o 3:ca1b80f7960a added c
225 | () [default] draft 224 | () [default] draft
226 o 2:b1661037fa25 added b 225 o 2:b1661037fa25 added b
227 | () [default] draft 226 | () [default] draft
234 > c 233 > c
235 > EOF 234 > EOF
236 merge:[6] added d 235 merge:[6] added d
237 with: [5] added d 236 with: [5] added d
238 base: [4] added d 237 base: [4] added d
239 merging "other" content-divergent changeset '9e5dffcb3d48' 238 merging "other" content-divergent changeset 'bdeedce1f621'
240 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 239 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
241 content divergent changesets on different branches. 240 content divergent changesets on different branches.
242 choose branch for the resolution changeset. (a) default or (b) watwat or (c) foobar? c 241 choose branch for the resolution changeset. (a) default or (b) watwat or (c) foobar? c
243 working directory is now at 0ac42f1bc15c 242 working directory is now at 0ac42f1bc15c
244 243
310 309
311 $ echo foo > d 310 $ echo foo > d
312 $ hg amend -m "foo to d" 311 $ hg amend -m "foo to d"
313 312
314 $ hg up a9d6fd6b5e40 --hidden 313 $ hg up a9d6fd6b5e40 --hidden
315 updating to a hidden changeset a9d6fd6b5e40
316 (hidden revision 'a9d6fd6b5e40' was rewritten as: b10b07a394f1)
317 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 314 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
318 working directory parent is obsolete! (a9d6fd6b5e40) 315 working directory parent is obsolete! (a9d6fd6b5e40)
319 (use 'hg evolve' to update to its successor: b10b07a394f1) 316 (use 'hg evolve' to update to its successor: b10b07a394f1)
320 $ echo babar > d 317 $ echo babar > d
321 $ hg amend -m "foo to d" 318 $ hg amend -m "foo to d"
322 2 new content-divergent changesets
323 319
324 $ hg glog 320 $ hg glog
325 @ 12:0bb497fed24a foo to d 321 @ 12:0bb497fed24a foo to d
326 | () [default] draft 322 | () [default] draft
327 | * 11:b10b07a394f1 foo to d 323 | o 11:b10b07a394f1 foo to d
328 |/ () [default] draft 324 |/ () [default] draft
329 o 3:ca1b80f7960a added c 325 o 3:ca1b80f7960a added c
330 | () [default] draft 326 | () [default] draft
331 o 2:b1661037fa25 added b 327 o 2:b1661037fa25 added b
332 | () [default] draft 328 | () [default] draft
370 366
371 $ echo bar > d 367 $ echo bar > d
372 $ hg amend -m "bar to d, expect beers" 368 $ hg amend -m "bar to d, expect beers"
373 369
374 $ hg up 11175423b5dc --hidden 370 $ hg up 11175423b5dc --hidden
375 updating to a hidden changeset 11175423b5dc
376 (hidden revision '11175423b5dc' was rewritten as: 27f0463f169a)
377 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 371 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
378 working directory parent is obsolete! (11175423b5dc) 372 working directory parent is obsolete! (11175423b5dc)
379 (use 'hg evolve' to update to its successor: 27f0463f169a) 373 (use 'hg evolve' to update to its successor: 27f0463f169a)
380 $ echo wat > d 374 $ echo wat > d
381 $ hg amend -m "wat to d, wat?" 375 $ hg amend -m "wat to d, wat?"
382 2 new content-divergent changesets
383 376
384 $ hg glog 377 $ hg glog
385 @ 15:f542037ddf31 wat to d, wat? 378 @ 15:f542037ddf31 wat to d, wat?
386 | () [default] draft 379 | () [default] draft
387 | * 14:27f0463f169a bar to d, expect beers 380 | o 14:27f0463f169a bar to d, expect beers
388 |/ () [default] draft 381 |/ () [default] draft
389 o 3:ca1b80f7960a added c 382 o 3:ca1b80f7960a added c
390 | () [default] draft 383 | () [default] draft
391 o 2:b1661037fa25 added b 384 o 2:b1661037fa25 added b
392 | () [default] draft 385 | () [default] draft
480 o 0:6569b5a81c7e@default(public) bk:[] root 473 o 0:6569b5a81c7e@default(public) bk:[] root
481 474
482 $ echo 'babar' >> a 475 $ echo 'babar' >> a
483 $ hg amend 476 $ hg amend
484 $ hg up --hidden 'min(desc("More addition"))' 477 $ hg up --hidden 'min(desc("More addition"))'
485 updating to a hidden changeset 867e43582046
486 (hidden revision '867e43582046' was rewritten as: fc6349f931da)
487 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 478 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
488 working directory parent is obsolete! (867e43582046) 479 working directory parent is obsolete! (867e43582046)
489 (use 'hg evolve' to update to its successor: fc6349f931da) 480 (use 'hg evolve' to update to its successor: fc6349f931da)
490 $ mv a a.old 481 $ mv a a.old
491 $ echo 'jungle' > a 482 $ echo 'jungle' > a
492 $ cat a.old >> a 483 $ cat a.old >> a
493 $ rm a.old 484 $ rm a.old
494 $ hg amend 485 $ hg amend
495 2 new content-divergent changesets
496 $ glog 486 $ glog
497 @ 3:051337a45e7c@default(draft) bk:[] More addition 487 @ 3:051337a45e7c@default(draft) bk:[] More addition
498 | 488 |
499 | * 2:fc6349f931da@default(draft) bk:[] More addition 489 | o 2:fc6349f931da@default(draft) bk:[] More addition
500 |/ 490 |/
501 o 0:6569b5a81c7e@default(public) bk:[] root 491 o 0:6569b5a81c7e@default(public) bk:[] root
502 492
503 493
504 Stabilize it 494 Stabilize it
573 Check conflict during content-divergence resolution 563 Check conflict during content-divergence resolution
574 --------------------------------------------------- 564 ---------------------------------------------------
575 565
576 566
577 $ hg up --hidden 'min(desc("More addition"))' 567 $ hg up --hidden 'min(desc("More addition"))'
578 updating to a hidden changeset 867e43582046
579 (hidden revision '867e43582046' was rewritten as: 5bf84d1d71d1)
580 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 568 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
581 working directory parent is obsolete! (867e43582046) 569 working directory parent is obsolete! (867e43582046)
582 (use 'hg evolve' to update to its successor: 5bf84d1d71d1) 570 (use 'hg evolve' to update to its successor: 5bf84d1d71d1)
583 $ echo 'gotta break' >> a 571 $ echo 'gotta break' >> a
584 $ hg amend 572 $ hg amend
585 2 new content-divergent changesets
586 573
587 # reamend so that the case is not the first precursor. 574 # reamend so that the case is not the first precursor.
588 575
589 $ hg amend -m "More addition (2)" 576 $ hg amend -m "More addition (2)"
590 $ hg phase 'contentdivergent()' 577 $ hg phase 'contentdivergent()'
592 6: draft 579 6: draft
593 580
594 $ glog 581 $ glog
595 @ 6:13c1b75640a1@default(draft) bk:[] More addition (2) 582 @ 6:13c1b75640a1@default(draft) bk:[] More addition (2)
596 | 583 |
597 | * 4:5bf84d1d71d1@default(draft) bk:[] More addition 584 | o 4:5bf84d1d71d1@default(draft) bk:[] More addition
598 |/ 585 |/
599 o 0:6569b5a81c7e@default(public) bk:[] root 586 o 0:6569b5a81c7e@default(public) bk:[] root
600 587
601 588
602 $ hg evolve -qn --content-divergent 589 $ hg evolve -qn --content-divergent
750 > VIII 737 > VIII
751 > IX 738 > IX
752 > EOF 739 > EOF
753 $ hg commit --amend -m E2 740 $ hg commit --amend -m E2
754 $ hg --hidden update -r 'desc(E1)' 741 $ hg --hidden update -r 'desc(E1)'
755 updating to a hidden changeset 4a250e5bd992
756 (hidden revision '4a250e5bd992' was rewritten as: 084ae625fa51)
757 2 files updated, 0 files merged, 0 files removed, 0 files unresolved 742 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
758 working directory parent is obsolete! (4a250e5bd992) 743 working directory parent is obsolete! (4a250e5bd992)
759 (use 'hg evolve' to update to its successor: 084ae625fa51) 744 (use 'hg evolve' to update to its successor: 084ae625fa51)
760 $ cat << EOF > numbers 745 $ cat << EOF > numbers
761 > one 746 > one
789 > VII 774 > VII
790 > VIII 775 > VIII
791 > IX 776 > IX
792 > EOF 777 > EOF
793 $ hg commit --amend -m E3 778 $ hg commit --amend -m E3
794 2 new content-divergent changesets
795 $ hg log -G --patch --hidden 779 $ hg log -G --patch --hidden
796 @ 3:19ed1bf64a2c@default(draft) E3 [content-divergent] 780 @ 3:19ed1bf64a2c@default(draft) E3 [content-divergent]
797 | diff --git a/numbers b/numbers 781 | diff --git a/numbers b/numbers
798 | --- a/numbers 782 | --- a/numbers
799 | +++ b/numbers 783 | +++ b/numbers
808 | +++ b/romans 792 | +++ b/romans
809 | @@ -2,1 +2,1 @@ 793 | @@ -2,1 +2,1 @@
810 | -II 794 | -II
811 | +ii 795 | +ii
812 | 796 |
813 | * 2:084ae625fa51@default(draft) E2 [content-divergent] 797 | o 2:084ae625fa51@default(draft) E2 [content-divergent]
814 |/ diff --git a/letters b/letters 798 |/ diff --git a/letters b/letters
815 | --- a/letters 799 | --- a/letters
816 | +++ b/letters 800 | +++ b/letters
817 | @@ -4,1 +4,1 @@ 801 | @@ -4,1 +4,1 @@
818 | -d 802 | -d
894 878
895 19ed1bf64a2c: E3 879 19ed1bf64a2c: E3
896 content-divergent: 084ae625fa51 (draft) (precursor 4a250e5bd992) 880 content-divergent: 084ae625fa51 (draft) (precursor 4a250e5bd992)
897 881
898 $ hg obslog --all --patch 882 $ hg obslog --all --patch
899 * 084ae625fa51 (2) E2 883 o 084ae625fa51 (2) E2
900 | 884 |
901 | @ 19ed1bf64a2c (3) E3 885 | @ 19ed1bf64a2c (3) E3
902 |/ 886 |/
903 x 4a250e5bd992 (1) E1 887 x 4a250e5bd992 (1) E1
904 rewritten(description, content) as 084ae625fa51 using amend by test (Thu Jan 01 00:00:00 1970 +0000) 888 rewritten(description, content) as 084ae625fa51 using amend by test (Thu Jan 01 00:00:00 1970 +0000)