--- 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)