Mercurial > hg
comparison tests/test-verify.t @ 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 | 49b00a04028f |
children | def497c75351 |
comparison
equal
deleted
inserted
replaced
51252:fd1aa5e18f75 | 51253:96e05f1a99bd |
---|---|
309 $ echo 'corrupted' > b | 309 $ echo 'corrupted' > b |
310 $ dd if=.hg/store/data/a.i of=start bs=1 count=20 2>/dev/null | 310 $ dd if=.hg/store/data/a.i of=start bs=1 count=20 2>/dev/null |
311 $ cat start b > .hg/store/data/a.i | 311 $ cat start b > .hg/store/data/a.i |
312 | 312 |
313 $ hg verify -q | 313 $ hg verify -q |
314 a@1: broken revlog! (index a is corrupted) | 314 a@1: broken revlog! (index a is corrupted) (no-rust !) |
315 a@1: broken revlog! (abort: unexpected inline revlog length) (rust !) | |
315 warning: orphan data file 'data/a.i' | 316 warning: orphan data file 'data/a.i' |
316 not checking dirstate because of previous errors | 317 not checking dirstate because of previous errors |
317 1 warnings encountered! | 318 1 warnings encountered! |
318 1 integrity errors encountered! | 319 1 integrity errors encountered! |
319 (first damaged changeset appears to be 1) | 320 (first damaged changeset appears to be 1) |