Mercurial > evolve
changeset 5788:961a940aef57
divergence-resolution: [patch 3] fix a messed up test case
Because of logic change in divergence resolution which causes the order change
in picking the resolution parent this test case was messed up.
It was supposed to test that it hits merge conflict while merging the
two divergent csets but because of some change in previous patches, we hit
conflict early during relocation of one of the cset.
This patch, by resolving the conflict for relocation make sure that we test
the conflict while merging the two divergent csets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 24 Jan 2021 20:09:28 +0530 |
parents | 32c0b2899fc4 |
children | d0389ddf402d |
files | tests/test-evolve-content-divergent-interrupted.t |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-evolve-content-divergent-interrupted.t Sun Jan 24 20:09:02 2021 +0530 +++ b/tests/test-evolve-content-divergent-interrupted.t Sun Jan 24 20:09:28 2021 +0530 @@ -373,6 +373,24 @@ (see 'hg help evolve.interrupted') [240] +this test case is mainly to test that we hit merge conlict while merging the +two divergent csets, so resolving this one which happened during relocation + $ echo a > a + $ hg res -m + (no more unresolved files) + continue: hg evolve --continue + + $ hg evolve -c + evolving 8:a8673909e314 "added d" + merging a + merging d + warning: conflicts while merging a! (edit, then use 'hg resolve --mark') + warning: conflicts while merging d! (edit, then use 'hg resolve --mark') + 0 files updated, 0 files merged, 0 files removed, 2 files unresolved + unresolved merge conflicts + (see 'hg help evolve.interrupted') + [240] + $ hg evolve --abort evolve aborted working directory is now at b6a3f3ee0c44