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

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 7:47 p.m.
Message ID <15e6375ef11bdb56ba4975989266860f@localhost.localdomain>
Download mbox | patch
Permalink /patch/28979/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 7:47 p.m.
pulkit updated this revision to Diff 6602.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2665?vs=6600&id=6602

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)