comparison tests/test-evolve-templates.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 f189a0d5e3df
children f44cc9abf21c
comparison
equal deleted inserted replaced
5078:66f01dd79f5d 5079:1f92a6aa40d6
7 $ cat >> $HGRCPATH <<EOF 7 $ cat >> $HGRCPATH <<EOF
8 > [ui] 8 > [ui]
9 > interactive = true 9 > interactive = true
10 > [phases] 10 > [phases]
11 > publish=False 11 > publish=False
12 > [experimental]
13 > evolution.allowdivergence = True
12 > [extensions] 14 > [extensions]
13 > evolve = 15 > evolve =
14 > [alias] 16 > [alias]
15 > tlog = log -G -T '{node|short}\ 17 > tlog = log -G -T '{node|short}\
16 > {if(predecessors, "\n Predecessors: {predecessors}")}\ 18 > {if(predecessors, "\n Predecessors: {predecessors}")}\