Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51187:6ec8387eb0be
rust-index: pass data down to the Rust index
This will allow us to start keeping the Rust index synchronized with the
cindex as we gradually implement more and more methods in Rust. This will
eventually be removed.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 27 Jun 2023 17:34:51 +0200 |
parents | a93e52f0b6ff |
children | 13f58ce70299 |
comparison
equal
deleted
inserted
replaced
51186:b4d152a28742 | 51187:6ec8387eb0be |
---|---|
224 parse_index_v1_nodemap = None | 224 parse_index_v1_nodemap = None |
225 | 225 |
226 | 226 |
227 def parse_index_v1_mixed(data, inline): | 227 def parse_index_v1_mixed(data, inline): |
228 index, cache = parse_index_v1(data, inline) | 228 index, cache = parse_index_v1(data, inline) |
229 return rustrevlog.MixedIndex(index), cache | 229 return rustrevlog.MixedIndex(index, data), cache |
230 | 230 |
231 | 231 |
232 # corresponds to uncompressed length of indexformatng (2 gigs, 4-byte | 232 # corresponds to uncompressed length of indexformatng (2 gigs, 4-byte |
233 # signed integer) | 233 # signed integer) |
234 _maxentrysize = 0x7FFFFFFF | 234 _maxentrysize = 0x7FFFFFFF |