Patchwork D7740: debug: drop unused variable assignments

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 10:02 p.m.
Message ID <bda416bbc507a3f6c8be431cde14e2bf@localhost.localdomain>
Download mbox | patch
Permalink /patch/44085/
State Not Applicable
Headers show

Comments

phabricator - Dec. 27, 2019, 10:02 p.m.
Closed by commit rHG7a2c49a3cbae: debug: drop unused variable assignments (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7740?vs=18956&id=18971

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7740/new/

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -331,9 +331,9 @@ 
                     )
                 )
 
-        chunkdata = gen.changelogheader()
+        gen.changelogheader()
         showchunks(b"changelog")
-        chunkdata = gen.manifestheader()
+        gen.manifestheader()
         showchunks(b"manifest")
         for chunkdata in iter(gen.filelogheader, {}):
             fname = chunkdata[b'filename']
@@ -341,7 +341,7 @@ 
     else:
         if isinstance(gen, bundle2.unbundle20):
             raise error.Abort(_(b'use debugbundle2 for this file'))
-        chunkdata = gen.changelogheader()
+        gen.changelogheader()
         for deltadata in gen.deltaiter():
             node, p1, p2, cs, deltabase, delta, flags = deltadata
             ui.write(b"%s%s\n" % (indent_string, hex(node)))