[Updated] D10169: nodemap: convert error message to bytes

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


Closed by commit rHG98c816e89fac: nodemap: convert error message to bytes (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/D10169?vs=26266&id=26459

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

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

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS

diff --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py
--- a/mercurial/revlogutils/nodemap.py
+++ b/mercurial/revlogutils/nodemap.py
@@ -557,7 +557,7 @@
 def parse_data(data):
     """parse parse nodemap data into a nodemap Trie"""
     if (len(data) % S_BLOCK.size) != 0:
-        msg = "nodemap data size is not a multiple of block size (%d): %d"
+        msg = b"nodemap data size is not a multiple of block size (%d): %d"
         raise error.Abort(msg % (S_BLOCK.size, len(data)))
     if not data:
         return Block(), 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/6dda2328/attachment-0002.html>


More information about the Mercurial-patches mailing list