mercurial/revlog.py
changeset 31366 c233cbda5b1e
parent 31365 ef6888172437
child 31378 b6f5af372c0c
--- 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)