Patchwork D2665: py3: use bytes() instead of str()

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 7:40 p.m.
Message ID <differential-rev-PHID-DREV-xgl2eveod6z2uclwzbgp-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/28975/
State Superseded
Headers show

Comments

phabricator - March 4, 2018, 7:40 p.m.
pulkit created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D2665

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: pulkit, indygreg, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -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)