# HG changeset patch # User Matt Harbison # Date 2021-03-11 22:05:37 # Node ID 98c816e89fac87a944514caa052ebcb5884466a1 # Parent b0253377e17057161c35a03c73c794c4a159cadd nodemap: convert error message to bytes Differential Revision: https://phab.mercurial-scm.org/D10169 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 _to_value(item, block_map): 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