Mercurial > public > mercurial-scm > hg
diff tests/test-parseindex2.py @ 48769:1bb62821f080
revlog: register changelogv2 C implementation in parsers
This allows Python code to make use of the C implementation of the changelogv2
base operations when the C extensions are enabled.
The `format_version` values are now shared between the C and Python sides,
avoiding an additional translation for the selection of the format version to
use.
Differential Revision: https://phab.mercurial-scm.org/D12179
author | pacien <pacien.trangirard@pacien.net> |
---|---|
date | Mon, 07 Feb 2022 13:23:58 +0100 |
parents | 52034c42c09d |
children | 6000f5b25c9b |
line wrap: on
line diff
--- a/tests/test-parseindex2.py Mon Feb 14 12:34:02 2022 +0100 +++ b/tests/test-parseindex2.py Mon Feb 07 13:23:58 2022 +0100 @@ -134,8 +134,8 @@ ) -def parse_index2(data, inline, revlogv2=False): - index, chunkcache = parsers.parse_index2(data, inline, revlogv2=revlogv2) +def parse_index2(data, inline, format=constants.REVLOGV1): + index, chunkcache = parsers.parse_index2(data, inline, format=format) return list(index), chunkcache