D4811: py3: use util.forcebytestr() to convert error messages to bytes
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun Sep 30 00:25:16 UTC 2018
pulkit created this revision.
Herald added a reviewer: indygreg.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
This makes the python 3 buildbot green again.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4811
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
@@ -2669,7 +2669,8 @@
state['skipread'].add(node)
except Exception as e:
yield revlogproblem(
- error=_('unpacking %s: %s') % (short(node), e),
+ error=_('unpacking %s: %s') % (short(node),
+ stringutil.forcebytestr(e)),
node=node)
state['skipread'].add(node)
To: pulkit, indygreg, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list