Mercurial > evolve
diff tests/test-fold.t @ 5079:1f92a6aa40d6
evolve: add pre-check logic for content-divergence in rewriteutil.precheck()
For now, pre-check will abort if rewriting a rev create divergence (and
config experimental.evolution.allowdivergence is not set to True).
But this behaviour can be improved where instead of abort maybe we
can confirm the user to either proceed with divergence or some other
options depends on what command user is running.
Changes in test file are used to overrides the pre-check for testing
purpose (using experimental.evolution.allowdivergence=yes).
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Mon, 04 Nov 2019 01:30:50 +0530 |
parents | 8a491546e81d |
children | a66c9fc9c503 |
line wrap: on
line diff
--- a/tests/test-fold.t Wed Jan 01 21:36:21 2020 +0530 +++ b/tests/test-fold.t Mon Nov 04 01:30:50 2019 +0530 @@ -405,8 +405,8 @@ $ hg fold --exact -r 'desc("A")::desc("B")' -m 'second fold' \ > --config experimental.evolution.allowdivergence=no - abort: folding obsolete revisions may cause divergence - (set experimental.evolution.allowdivergence=yes to allow folding them) + abort: fold of 4b34ecfb0d56 creates content-divergence with fcfd42a7fa46 + (add --verbose for details or see 'hg help evolution.instability') [255] but if we allow divergence, this should work and should create new content-divergent changesets