Mercurial > evolve
diff tests/test-evolve-abort-contentdiv.t @ 3832:fb821ed44f86
evolve: strip the extra obsmarkers if any on `hg evolve --abort`
Previous patches started storing some obsmarkers which needs to stripped during
`evolve --abort` which can't be stripped by stripping the new evolved changesets
because they point to a node which existed before the evolution was performed.
This patch adds logic to strip those obsmarkers by finding their indices in the
obsstore and then stripping them.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 11 Jun 2018 20:17:56 +0530 |
parents | bb7d1616407f |
children | ac0717f23921 |
line wrap: on
line diff
--- a/tests/test-evolve-abort-contentdiv.t Mon Jun 11 20:13:36 2018 +0530 +++ b/tests/test-evolve-abort-contentdiv.t Mon Jun 11 20:17:56 2018 +0530 @@ -174,7 +174,7 @@ | () draft | x 9:7398f702a162 added c |/ () draft - | o 8:2ba73e31f264 added c + | * 8:2ba73e31f264 added c |/ () draft | * 7:f0f1694f123e added d | | () draft @@ -193,14 +193,12 @@ o 0:8fa14d15e168 added hgignore () draft -XXX: we need to strip off the obsmarker created 10 -> 8 $ hg obslog -r . --all - o 2ba73e31f264 (8) added c - |\ - @ | 491e10505bae (10) added c - | | rewritten as 2ba73e31f264 using evolve by test (Thu Jan 01 00:00:00 1970 +0000) + * 2ba73e31f264 (8) added c + | + | @ 491e10505bae (10) added c | | - x | 7398f702a162 (9) added c + | x 7398f702a162 (9) added c |/ rewritten(content) as 491e10505bae using amend by test (Thu Jan 01 00:00:00 1970 +0000) | x ca1b80f7960a (3) added c