Mercurial > hg
changeset 31369:b6f5af372c0c
revlog: use bytes() instead of str() to get data from memoryview
Fixes `files -v` on Python 3.
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 12 Mar 2017 15:27:02 -0400 |
parents | 6e59397b08d8 |
children | 906be86990c4 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Mar 12 03:33:22 2017 -0400 +++ b/mercurial/revlog.py Sun Mar 12 15:27:02 2017 -0400 @@ -1234,7 +1234,7 @@ def revdiff(self, rev1, rev2): """return or calculate a delta between two revisions""" if rev1 != nullrev and self.deltaparent(rev2) == rev1: - return str(self._chunk(rev2)) + return bytes(self._chunk(rev2)) return mdiff.textdiff(self.revision(rev1), self.revision(rev2))