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

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 8:19 p.m.
Message ID <ac952ef120f4c73e83d784b5c76d200d@localhost.localdomain>
Download mbox | patch
Permalink /patch/28984/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 8:19 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6bacb2f663cb: py3: use bytes() instead of str() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/revlog.py

CHANGE DETAILS




To: pulkit, indygreg, #hg-reviewers, yuja
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)