changeset 36150:fa4d333cac58

branchmap: wrap builtin exception in bytes for logging Differential Revision: https://phab.mercurial-scm.org/D2224
author Augie Fackler <augie@google.com>
date Tue, 13 Feb 2018 08:41:42 -0500
parents 828f44cdfee3
children d541042f32f6
files mercurial/branchmap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/branchmap.py	Sat Dec 23 15:11:13 2017 +0530
+++ b/mercurial/branchmap.py	Tue Feb 13 08:41:42 2018 -0500
@@ -377,7 +377,7 @@
                 self._rbcrevs[:] = data
             except (IOError, OSError) as inst:
                 repo.ui.debug("couldn't read revision branch cache: %s\n" %
-                              inst)
+                              pycompat.bytestr(inst))
         # remember number of good records on disk
         self._rbcrevslen = min(len(self._rbcrevs) // _rbcrecsize,
                                len(repo.changelog))