changeset 37394:65705fbc9c37

convert: remove unused/unnecessary variable "parentctx" Differential Revision: https://phab.mercurial-scm.org/D3160
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 05 Apr 2018 16:10:52 -0700
parents afcfdf53e4b5
children 810413b745ff
files hgext/convert/hg.py
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/hg.py	Sat Mar 24 17:57:22 2018 +0100
+++ b/hgext/convert/hg.py	Thu Apr 05 16:10:52 2018 -0700
@@ -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()