changeset 46684:98c816e89fac stable

nodemap: convert error message to bytes Differential Revision: https://phab.mercurial-scm.org/D10169
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 17:05:37 -0500
parents b0253377e170
children 799973a44c82
files mercurial/revlogutils/nodemap.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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