D7740: debug: drop unused variable assignments
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Dec 27 21:17:56 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
Caught by PyCharm.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D7740
AFFECTED FILES
mercurial/debugcommands.py
CHANGE DETAILS
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)))
To: mharbison72, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list