[Updated] D10170: branchmap: force Exception to bytes before logging

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Wed Mar 17 10:11:14 UTC 2021


Closed by commit rHG799973a44c82: branchmap: force Exception to bytes before logging (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10170?vs=26267&id=26460

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10170/new/

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

AFFECTED FILES
  mercurial/branchmap.py

CHANGE DETAILS

diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py
--- a/mercurial/branchmap.py
+++ b/mercurial/branchmap.py
@@ -299,9 +299,7 @@
                     msg
                     % (
                         _branchcachedesc(repo),
-                        pycompat.bytestr(
-                            inst
-                        ),  # pytype: disable=wrong-arg-types
+                        stringutil.forcebytestr(inst),
                     )
                 )
             bcache = None



To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210317/70d83eb3/attachment-0002.html>


More information about the Mercurial-patches mailing list