py3: use bytes() instead of str()
authorPulkit Goyal <7895pulkit@gmail.com>
Mon, 05 Mar 2018 01:08:40 +0530
changeset 36722 6bacb2f663cb
parent 36721 981f328d6d16
child 36723 1f9bbd1d6b8a
py3: use bytes() instead of str() Differential Revision: https://phab.mercurial-scm.org/D2665
mercurial/revlog.py
--- a/mercurial/revlog.py	Mon Mar 05 01:05:54 2018 +0530
+++ b/mercurial/revlog.py	Mon Mar 05 01:08:40 2018 +0530
@@ -2468,7 +2468,7 @@
                 if populatecachedelta:
                     dp = self.deltaparent(rev)
                     if dp != nullrev:
-                        cachedelta = (dp, str(self._chunk(rev)))
+                        cachedelta = (dp, bytes(self._chunk(rev)))
 
                 if not cachedelta:
                     rawtext = self.revision(rev, raw=True)