changeset 2773:9e363e8c1c06

split: basic code cleanup We remove a useless extra variable since another one already hold the same value.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sun, 23 Jul 2017 20:25:26 +0200
parents 394b836e475b
children 0f167320f90f
files hgext3rd/evolve/cmdrewrite.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)