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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Sun Mar 4 15:19:15 EST 2018


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

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)



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


More information about the Mercurial-devel mailing list