# HG changeset patch # User Sushil khanchi # Date 1612203893 -19800 # Node ID c5c879fed91cb309e0c9d5758115817f58399249 # Parent 72f65a6472039b89c40ba5ff86bf14ac99be794d divergence-resolution: add comments to explain a particular case diff -r 72f65a647203 -r c5c879fed91c hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Fri Jan 22 05:37:43 2021 +0100 +++ b/hgext3rd/evolve/evolvecmd.py Mon Feb 01 23:54:53 2021 +0530 @@ -377,7 +377,12 @@ # both are in parent-child relation pass elif succsbasep1 in (succsdivp1, succsotherp1): - # only one side moved, set parent of moved one as resolution parent + # 1) either, only one side moved + # -> set parent of moved one as resolution parent + # 2) or, both moved but one moved to succs of basep1 + # -> set parent of other one as resolution parent + # 3) or, both have same parent's successor + # -> set parent's successor as resolution parent if succsbasep1 == succsdivp1: resolutionparent = succsotherp1 else: