Skip to content
Snippets Groups Projects

evolve: add pre-checking for content-divergence

Closed Sushil Khanchi requested to merge topic/default/PreChecking into branch/default
  1. Nov 03, 2019
    • Sushil Khanchi's avatar
      evolve: remove a check which is already done by rewriteutil.precheck() · 9d05eb69cd05
      Sushil Khanchi authored
      We have tests to check if fold is being performed on public cset.
      There is no changes in test files because testing that never touched
      the part this patch removes, and already caught in rewriteutil.precheck()
      9d05eb69cd05
    • Sushil Khanchi's avatar
      evolve: add pre-check logic for content-divergence in rewriteutil.precheck() · 39d282fd04e0
      Sushil Khanchi authored
      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).
      39d282fd04e0
Loading