# HG changeset patch # User Augie Fackler # Date 1518529302 18000 # Node ID fa4d333cac586fffe2ec0bd3faabe791b1a2ae08 # Parent 828f44cdfee38c7c1ea83ef0f0a6270974997c55 branchmap: wrap builtin exception in bytes for logging Differential Revision: https://phab.mercurial-scm.org/D2224 diff -r 828f44cdfee3 -r fa4d333cac58 mercurial/branchmap.py --- 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))