Patchwork D3160: convert: remove unused/unnecessary variable "parentctx"

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 5:46 p.m.
Message ID <differential-rev-PHID-DREV-bsryoyxjx6gzxd26tyn4-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30444/
State Superseded
Headers show

Comments

phabricator - April 6, 2018, 5:46 p.m.
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D3160

AFFECTED FILES
  hgext/convert/hg.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/convert/hg.py b/hgext/convert/hg.py
--- a/hgext/convert/hg.py
+++ b/hgext/convert/hg.py
@@ -364,10 +364,8 @@ 
 
     def puttags(self, tags):
         try:
-            parentctx = self.repo[self.tagsbranch]
-            tagparent = parentctx.node()
+            tagparent = self.repo[self.tagsbranch].node()
         except error.RepoError:
-            parentctx = None
             tagparent = nodemod.nullid
 
         oldlines = set()