Skip to content
Snippets Groups Projects

prune: fix false warning of divergence creation

Merged Sushil Khanchi requested to merge topic/default/fix-prune into branch/default
  1. Apr 05, 2022
  2. Mar 27, 2022
  3. Jul 22, 2021
    • Sushil Khanchi's avatar
      precheck: fix false warning about divergence creation, in hg prune · 4466989cee8d
      Sushil Khanchi authored
      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.
      4466989cee8d
    • Sushil Khanchi's avatar
      prune: add a test to demonstrate a bug · ce46b853d10e
      Sushil Khanchi authored
      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.
      ce46b853d10e
Loading