Patchwork D2224: branchmap: wrap builtin exception in bytes for logging

login
register
mail settings
Submitter phabricator
Date Feb. 13, 2018, 5:14 p.m.
Message ID <39ad17315cd8630fc968889ba66d363c@localhost.localdomain>
Download mbox | patch
Permalink /patch/27827/
State Not Applicable
Headers show

Comments

phabricator - Feb. 13, 2018, 5:14 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfa4d333cac58: branchmap: wrap builtin exception in bytes for logging (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2224?vs=5630&id=5637

REVISION DETAIL
  https://phab.mercurial-scm.org/D2224

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -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))