py3: use util.forcebytestr() to convert error messages to bytes
authorPulkit Goyal <pulkit@yandex-team.ru>
Sun, 30 Sep 2018 05:52:42 +0530
changeset 39908 d70e620ee8c9
parent 39907 8cef57031bbe
child 39909 0f8ff3ff5d5c
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
mercurial/revlog.py
--- 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)