Mercurial > public > mercurial-scm > hg
comparison mercurial/revlogutils/nodemap.py @ 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 | d32e7ed81f4f |
children | e2f7b2695ba1 |
comparison
equal
deleted
inserted
replaced
46683:b0253377e170 | 46684:98c816e89fac |
---|---|
555 | 555 |
556 | 556 |
557 def parse_data(data): | 557 def parse_data(data): |
558 """parse parse nodemap data into a nodemap Trie""" | 558 """parse parse nodemap data into a nodemap Trie""" |
559 if (len(data) % S_BLOCK.size) != 0: | 559 if (len(data) % S_BLOCK.size) != 0: |
560 msg = "nodemap data size is not a multiple of block size (%d): %d" | 560 msg = b"nodemap data size is not a multiple of block size (%d): %d" |
561 raise error.Abort(msg % (S_BLOCK.size, len(data))) | 561 raise error.Abort(msg % (S_BLOCK.size, len(data))) |
562 if not data: | 562 if not data: |
563 return Block(), None | 563 return Block(), None |
564 block_map = {} | 564 block_map = {} |
565 new_blocks = [] | 565 new_blocks = [] |