# HG changeset patch # User Pierre-Yves David # Date 1500834326 -7200 # Node ID 9e363e8c1c0665b0213669af8fbe21172a502f83 # Parent 394b836e475b6677c930854c2e8761eb803e662b split: basic code cleanup We remove a useless extra variable since another one already hold the same value. diff -r 394b836e475b -r 9e363e8c1c06 hgext3rd/evolve/cmdrewrite.py --- a/hgext3rd/evolve/cmdrewrite.py Sun Jul 23 17:28:02 2017 +0200 +++ b/hgext3rd/evolve/cmdrewrite.py Sun Jul 23 20:25:26 2017 +0200 @@ -783,7 +783,6 @@ cmdutil.bailifchanged(repo) tr = repo.transaction('split') ctx = repo[rev] - r = ctx.rev() disallowunstable = not obsolete.isenabled(repo, obsolete.allowunstableopt) if disallowunstable: @@ -833,7 +832,7 @@ bmupdate(tip.node()) if bookactive is not None: bookmarksmod.activate(repo, bookactive) - obsolete.createmarkers(repo, [(repo[r], newcommits)]) + obsolete.createmarkers(repo, [(repo[rev], newcommits)]) tr.close() finally: lockmod.release(tr, lock, wlock)