# HG changeset patch # User Pierre-Yves David # Date 1577388207 -3600 # Node ID ef1978a0fcc04e1a08f07d55525be6330b017aba # Parent 1403cc7c2cee0ebbf96643d705b92f7690dc9606 evolve: simplify some conditional extracted from a changeset of Sushil khanchi diff -r 1403cc7c2cee -r ef1978a0fcc0 hgext3rd/evolve/evolvecmd.py --- a/hgext3rd/evolve/evolvecmd.py Thu Dec 26 20:17:01 2019 +0100 +++ b/hgext3rd/evolve/evolvecmd.py Thu Dec 26 20:23:27 2019 +0100 @@ -377,8 +377,8 @@ ui.write_err(hint) return (False, b".") - succsotherp1 = other.p1().rev() - succsdivp1 = divergent.p1().rev() + otherp1 = succsotherp1 = other.p1().rev() + divp1 = succsdivp1 = divergent.p1().rev() # finding single successors of otherp1 and divp1 try: @@ -431,7 +431,7 @@ # then solve the content-divergence the way we solve 1) # for 3) and 4), we still have to decide if succsotherp1 in gca and succsdivp1 in gca: - if succsotherp1 == other.p1().rev() and succsdivp1 == divergent.p1().rev(): + if succsotherp1 == otherp1 and succsdivp1 == divp1: # both are on the same parents pass else: