changeset 31366:c233cbda5b1e

revlog: use bytes() to ensure text from _chunks is a reasonable type
author Augie Fackler <augie@google.com>
date Sun, 12 Mar 2017 03:32:38 -0400
parents ef6888172437
children 4015dfc899bb
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)