D2162: py3: preserve chunks as an iterable of bytes
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Mon Feb 12 21:47:56 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc1104fe76e69: py3: preserve chunks as an iterable of bytes (authored by indygreg, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2162?vs=5463&id=5586
REVISION DETAIL
https://phab.mercurial-scm.org/D2162
AFFECTED FILES
mercurial/logcmdutil.py
CHANGE DETAILS
diff --git a/mercurial/logcmdutil.py b/mercurial/logcmdutil.py
--- a/mercurial/logcmdutil.py
+++ b/mercurial/logcmdutil.py
@@ -81,7 +81,7 @@
if fp is not None or ui.canwritewithoutlabels():
out = fp or ui
if stat:
- chunks = patch.diffstat(util.iterlines(chunks), width=width)
+ chunks = [patch.diffstat(util.iterlines(chunks), width=width)]
for chunk in util.filechunkiter(util.chunkbuffer(chunks)):
out.write(chunk)
else:
To: indygreg, #hg-reviewers, pulkit, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list