# HG changeset patch # User Augie Fackler # Date 1489303958 14400 # Node ID c233cbda5b1e720ea2856ac3f0e49a679185057b # Parent ef6888172437531d417cb361d630895051daed6f revlog: use bytes() to ensure text from _chunks is a reasonable type diff -r ef6888172437 -r c233cbda5b1e mercurial/revlog.py --- a/mercurial/revlog.py Sun Mar 12 00:49:49 2017 -0500 +++ b/mercurial/revlog.py Sun Mar 12 03:32:38 2017 -0400 @@ -1277,7 +1277,7 @@ bins = self._chunks(chain, df=_df) if text is None: - text = str(bins[0]) + text = bytes(bins[0]) bins = bins[1:] text = mdiff.patches(text, bins)