Patchwork D2497: py3: convert error messages to bytes using util.forcebytestr()

login
register
mail settings
Submitter phabricator
Date March 1, 2018, 9:35 a.m.
Message ID <543ed9a92af5baed65ace41587f4ccf0@localhost.localdomain>
Download mbox | patch
Permalink /patch/28528/
State Not Applicable
Headers show

Comments

phabricator - March 1, 2018, 9:35 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb0267387ce9e: py3: convert error messages to bytes using util.forcebytestr() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2497?vs=6197&id=6230

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

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