comparison mercurial/testing/revlog.py @ 51253:96e05f1a99bd

rust-index: stop instantiating a C Index The only missing piece was the `cache` to be returned from `revlog.parse_index_v1_mixed`, and it really seems that it is essentially repetition of the input, if `inline` is `True`. Not worth a Rust implementation (C implementation is probably there for historical reasons).
author Georges Racinet <georges.racinet@octobus.net>
date Sun, 29 Oct 2023 23:54:05 +0100
parents 03fdd4d7b5bd
children f94c10334bcb
comparison
equal deleted inserted replaced
51252:fd1aa5e18f75 51253:96e05f1a99bd
55 if data is None: 55 if data is None:
56 data = data_non_inlined 56 data = data_non_inlined
57 # not inheriting RevlogBasedTestCase to avoid having a 57 # not inheriting RevlogBasedTestCase to avoid having a
58 # `parseindex` method that would be shadowed by future subclasses 58 # `parseindex` method that would be shadowed by future subclasses
59 # this duplication will soon be removed 59 # this duplication will soon be removed
60 cindex = cparsers.parse_index2(data, False)[0] 60 return MixedIndex(data, REVLOGV1)
61 return MixedIndex(cindex, data, REVLOGV1)