Mercurial > evolve
changeset 6216:ce46b853d10e
prune: add a test to demonstrate a bug
Test shows that pruning without any successor warns about creating
divergence which is not possible and is a false warning.
For the knowledge, this pattern of pruning (without any successor) an
already pruned cset is sometime used to keep successors locally but
vanish them at server side.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Fri, 23 Jul 2021 00:48:50 +0530 |
parents | 1a33b31ad9a3 |
children | 4466989cee8d |
files | tests/test-prune.t |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-prune.t Sun Dec 12 17:19:12 2021 +0300 +++ b/tests/test-prune.t Fri Jul 23 00:48:50 2021 +0530 @@ -488,3 +488,18 @@ (use 'hg evolve' to update to its parent successor) $ cd .. + +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] + + $ cd ..