Skip to content
Snippets Groups Projects
Commit a6c49e5d authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

test: clarify test-parseindex offsets

We will make this revlog non-inline, so we clarify the code to make sure it is
simple to adjust the test later.
parent 1c4180d4
No related branches found
No related tags found
1 merge request!727no longer inline changelogs
......@@ -145,8 +145,13 @@
> ]
> for n, p in poisons:
> # corrupt p1 at rev0 and p2 at rev1
> d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:]
> open(n + b"/.hg/store/00changelog.i", "wb").write(d)
> rev_0 = data[:64 + 63]
> rev_1 = data[64 + 63:]
> altered_rev_0 = rev_0[:24] + p + rev_0[24 + 4:]
> altered_rev_1 = rev_1[:28] + p + rev_1[28 + 4:]
> new_data = altered_rev_0 + altered_rev_1
> with open(n + b"/.hg/store/00changelog.i", "wb") as f:
> f.write(new_data)
> EOF
$ hg -R limit debugrevlogindex -f1 -c
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment