hgext/convert/hg.py
changeset 37394 65705fbc9c37
parent 37361 e45545f7895e
child 37395 810413b745ff
--- 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()