# HG changeset patch # User Sushil khanchi # Date 1597952048 -19800 # Node ID e6241483ccecd38652e3d48485b068c62638aad8 # Parent 80e55fbda4a4d9c5c6ab37431901f80d98c439df evolve: no need to return divergent and other Since we have removed the logic which could swap the values between `divergent` and `other`, we don't need to return those values as they won't change in this function. diff -r 80e55fbda4a4 -r e6241483ccec hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Fri Aug 21 00:56:24 2020 +0530 +++ b/hgext3rd/evolve/evolvecmd.py Fri Aug 21 01:04:08 2020 +0530 @@ -322,7 +322,7 @@ evolvestate[b'relocate-other'] = True resolutionparent = publicdiv.p1().node() evolvestate[b'public-divergent'] = publicdiv.node() - return (True, divergent, other, resolutionparent) + return (True, resolutionparent) otherp1 = succsotherp1 = other.p1().rev() divp1 = succsdivp1 = divergent.p1().rev() @@ -414,7 +414,7 @@ ui.write_err(hint) return (False, b".") - return (True, divergent, other, resolutionparent) + return (True, resolutionparent) def _relocatedivergent(repo, orig, dest, evolvestate): """relocates a divergent commit and saves the evolve state""" @@ -481,7 +481,7 @@ evolvestate) if not datatoproceed[0]: return (False, b".") - divergent, other, resolutionparent = datatoproceed[1:] + resolutionparent = datatoproceed[1] if divergent.p1().node() != resolutionparent: evolvestate[b'relocate-div'] = True