py3: convert error messages to bytes using util.forcebytestr()
Differential Revision: https://phab.mercurial-scm.org/D2497
--- 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()