# HG changeset patch # User Pulkit Goyal # Date 2018-09-30 00:22:42 # Node ID d70e620ee8c9cbc3af7f7ba8279c13a28cc689fd # Parent 8cef57031bbe7c1aadcba6c8be7c2cdce44602b7 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 diff --git a/mercurial/revlog.py b/mercurial/revlog.py --- a/mercurial/revlog.py +++ b/mercurial/revlog.py @@ -2669,7 +2669,8 @@ class revlog(object): 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)