mercurial/branchmap.py
changeset 36474 d139eb308358
parent 36396 743b293c3ca0
child 36962 95f4f1bfb650
--- 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()