changegroup: drop an unused variable assignment
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 13:18:19 -0500
changeset 43971 6d2b5c4efdae
parent 43970 3194cc8c8de0
child 43972 7a2c49a3cbae
changegroup: drop an unused variable assignment Caught by PyCharm. The variable is assigned again below before it is used. Differential Revision: https://phab.mercurial-scm.org/D7739
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Fri Dec 27 13:13:33 2019 -0500
+++ b/mercurial/changegroup.py	Fri Dec 27 13:18:19 2019 -0500
@@ -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