nodemap: convert error message to bytes stable
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 11 Mar 2021 17:05:37 -0500
branchstable
changeset 46684 98c816e89fac
parent 46683 b0253377e170
child 46685 799973a44c82
nodemap: convert error message to bytes Differential Revision: https://phab.mercurial-scm.org/D10169
mercurial/revlogutils/nodemap.py
--- a/mercurial/revlogutils/nodemap.py	Thu Mar 11 17:04:58 2021 -0500
+++ b/mercurial/revlogutils/nodemap.py	Thu Mar 11 17:05:37 2021 -0500
@@ -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