Mercurial > hg
comparison mercurial/changegroup.py @ 43971:6d2b5c4efdae
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 27 Dec 2019 13:18:19 -0500 |
parents | 888bd39ed555 |
children | a0ec05d93c8e |
comparison
equal
deleted
inserted
replaced
43970:3194cc8c8de0 | 43971:6d2b5c4efdae |
---|---|
284 repo.ui.debug(b"add changeset %s\n" % short(x)) | 284 repo.ui.debug(b"add changeset %s\n" % short(x)) |
285 return len(cl) | 285 return len(cl) |
286 | 286 |
287 def revmap(x): | 287 def revmap(x): |
288 return cl.rev(x) | 288 return cl.rev(x) |
289 | |
290 changesets = 0 | |
291 | 289 |
292 try: | 290 try: |
293 # The transaction may already carry source information. In this | 291 # The transaction may already carry source information. In this |
294 # case we use the top level data. We overwrite the argument | 292 # case we use the top level data. We overwrite the argument |
295 # because we need to use the top level value (if they exist) | 293 # because we need to use the top level value (if they exist) |