py3: convert error messages to bytes using util.forcebytestr()
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 28 Feb 2018 19:54:49 +0530
changeset 36504 d139eb308358
parent 36503 ab5f18a9dcac
child 36505 7b84b737352d
py3: convert error messages to bytes using util.forcebytestr() Differential Revision: https://phab.mercurial-scm.org/D2497
mercurial/branchmap.py
--- 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()