Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 51275:f94c10334bcb
rust-index: renamed `MixedIndex` as `Index`
It is simply not mixed any more, hence the name had become a
future source of confusion.
author | Georges Racinet on incendie.racinet.fr <georges@racinet.fr> |
---|---|
date | Sun, 29 Oct 2023 12:18:03 +0100 |
parents | 96e05f1a99bd |
children | f20c4b307a5a |
line wrap: on
line diff
--- a/mercurial/revlog.py Sun Oct 29 23:54:05 2023 +0100 +++ b/mercurial/revlog.py Sun Oct 29 12:18:03 2023 +0100 @@ -225,9 +225,9 @@ parse_index_v1_nodemap = None -def parse_index_v1_mixed(data, inline, default_header): +def parse_index_v1_rust(data, inline, default_header): cache = (0, data) if inline else None - return rustrevlog.MixedIndex(data, default_header), cache + return rustrevlog.Index(data, default_header), cache # corresponds to uncompressed length of indexformatng (2 gigs, 4-byte @@ -1699,7 +1699,7 @@ self._parse_index = parse_index_v1_nodemap elif use_rust_index: self._parse_index = functools.partial( - parse_index_v1_mixed, default_header=new_header + parse_index_v1_rust, default_header=new_header ) try: d = self._parse_index(index_data, self._inline)