D4811: py3: use util.forcebytestr() to convert error messages to bytes
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sun Sep 30 01:13:54 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7eb937f598d1: py3: use util.forcebytestr() to convert error messages to bytes (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D4811?vs=11495&id=11498
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