Patchwork D7739: changegroup: drop an unused variable assignment

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 9:16 p.m.
Message ID <differential-rev-PHID-DREV-ljy3xvg7vzdnfwvnccjr-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44068/
State Superseded
Headers show

Comments

phabricator - Dec. 27, 2019, 9:16 p.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  Caught by PyCharm.  The variable is assigned again below before it is used.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -287,8 +287,6 @@ 
         def revmap(x):
             return cl.rev(x)
 
-        changesets = 0
-
         try:
             # The transaction may already carry source information. In this
             # case we use the top level data. We overwrite the argument