changeset 36504:d139eb308358

py3: convert error messages to bytes using util.forcebytestr() Differential Revision: https://phab.mercurial-scm.org/D2497
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 28 Feb 2018 19:54:49 +0530
parents ab5f18a9dcac
children 7b84b737352d
files mercurial/branchmap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Wed Feb 28 19:54:10 2018 +0530
+++ b/mercurial/branchmap.py	Wed Feb 28 19:54:49 2018 +0530
@@ -520,7 +520,7 @@
                 self._rbcrevslen = revs
         except (IOError, OSError, error.Abort, error.LockError) as inst:
             repo.ui.debug("couldn't write revision branch cache%s: %s\n"
-                          % (step, inst))
+                          % (step, util.forcebytestr(inst)))
         finally:
             if wlock is not None:
                 wlock.release()