Mercurial > evolve
diff tests/test-prune.t @ 6217:4466989cee8d
precheck: fix false warning about divergence creation, in hg prune
In case of pruning with no successors, there is no chance for new divergence.
It was happening becuase current precheck logic assumes that every revision
being rewritten will be replaced with at least one successor.
Changes in test file demonstrate the fixed bug.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Fri, 23 Jul 2021 00:34:29 +0530 |
parents | ce46b853d10e |
children | 7650b38961a2 |
line wrap: on
line diff
--- a/tests/test-prune.t Fri Jul 23 00:48:50 2021 +0530 +++ b/tests/test-prune.t Fri Jul 23 00:34:29 2021 +0530 @@ -491,15 +491,13 @@ Test that pruning (without any successors) an already pruned revision doesn't give false warning about divergence creation: -XXX: it is a false warning and should be fixed in upcoming patch + $ hg init nofalsewarn $ cd nofalsewarn $ echo a > A $ hg ci -Aqm "added a" $ hg ci --amend -m "added A" $ hg prune 0 --hidden - abort: cannot prune b8e67c50f3e6, as that creates content-divergence with fd9fbba03735 - (add --verbose for details or see 'hg help evolution.instability') - [10] + 1 changesets pruned $ cd ..