# HG changeset patch # User Sushil khanchi # Date 1597953478 -19800 # Node ID b4c2cbbde6bdbf576ebf9895816c7e3aad7e7784 # Parent 5c62afe34c9689f5deae12875a81f833686fadb3 evolve: rename a func and some updates around it diff -r 5c62afe34c96 -r b4c2cbbde6bd hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Aug 20 23:54:27 2020 +0530 +++ b/hgext3rd/evolve/evolvecmd.py Fri Aug 21 01:27:58 2020 +0530 @@ -286,7 +286,7 @@ repo.dirstate.setparents(newid, nodemod.nullid) return (True, replacementnode) -def _prepcontentdivresolution(ui, repo, divergent, other, evolvestate): +def _pickresolutionparent(ui, repo, divergent, other, evolvestate): """ if relocation required, decide which divergent cset will be relocated to the other side""" @@ -477,11 +477,10 @@ evolvestate[b'old-divergent'] = None # setup everything before merging two content-divergent csets - datatoproceed = _prepcontentdivresolution(ui, repo, divergent, other, - evolvestate) - if not datatoproceed[0]: + picked, resolutionparent = _pickresolutionparent(ui, repo, divergent, + other, evolvestate) + if not picked: return (False, b".") - resolutionparent = datatoproceed[1] if divergent.p1().node() != resolutionparent: evolvestate[b'relocate-div'] = True