py3: use util.forcebytestr() to convert error messages to bytes
This makes the python 3 buildbot green again.
Differential Revision: https://phab.mercurial-scm.org/D4811
--- a/mercurial/revlog.py Thu Sep 27 14:26:02 2018 -0700
+++ b/mercurial/revlog.py Sun Sep 30 05:52:42 2018 +0530
@@ -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)