changeset 39913:d70e620ee8c9

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sun, 30 Sep 2018 05:52:42 +0530
parents 8cef57031bbe
children 0f8ff3ff5d5c
files mercurial/revlog.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)