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

login
register
mail settings
Submitter phabricator
Date April 6, 2018, 6:50 p.m.
Message ID <60b709e3d36fcfe1c15796d45735ce92@localhost.localdomain>
Download mbox | patch
Permalink /patch/30453/
State Not Applicable
Headers show

Comments

phabricator - April 6, 2018, 6:50 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG65705fbc9c37: convert: remove unused/unnecessary variable &quot;parentctx&quot; (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3160?vs=7787&id=7796

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

AFFECTED FILES
  hgext/convert/hg.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, indygreg
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()