Mercurial > evolve
diff tests/test-evolve-content-divergent-corner-cases.t @ 5728:6dbfd71cdcba
divergence-resolution: clarify some test case
We explain some situation, and the expected output. This is expected to be
affected by the next changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 22 Jan 2021 04:24:05 +0100 |
parents | 3b7df91c2ba7 |
children | a119432bafc1 |
line wrap: on
line diff
--- a/tests/test-evolve-content-divergent-corner-cases.t Fri Jan 22 04:10:44 2021 +0100 +++ b/tests/test-evolve-content-divergent-corner-cases.t Fri Jan 22 04:24:05 2021 +0100 @@ -344,6 +344,40 @@ o 0:9092f1db7931 added a () [default] draft +In this case, we have two divergent changeset: +- one did not changed parent +- the other did changed parent + +So we can do a 3 way merges merges. on one side we have changes (the parent +change) and on the other one we don't, we should apply the change. + +BROKEN: Currently, the logic is broken and pick the wrong parent + + $ hg evolve --list --rev 'contentdivergent()' + ff6f7cd76a7c: updated e + orphan: 9150fe93bec6 (obsolete parent) + content-divergent: de4ea3103326 (draft) (precursor 8d71eadcc9df) + + de4ea3103326: updated e + content-divergent: ff6f7cd76a7c (draft) (precursor 8d71eadcc9df) + + + $ hg glog --hidden --rev '::(ff6f7cd76a7c+de4ea3103326+8d71eadcc9df)' + @ 6:de4ea3103326 updated e + | () [default] draft + | * 5:ff6f7cd76a7c updated e + | | () [default] draft + | | x 4:8d71eadcc9df added e + | |/ () [default] draft + | x 3:9150fe93bec6 added d + | | () [default] draft + | o 2:155349b645be added c + |/ () [default] draft + o 1:5f6d8a4bf34a added b + | () [default] draft + o 0:9092f1db7931 added a + () [default] draft + $ hg evolve --content-divergent --any --update --config ui.interactive=true <<EOF > c > EOF