nodemap: convert error message to bytes
Differential Revision: https://phab.mercurial-scm.org/D10169
--- 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