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

censor: show that the `not-inline` → `inline` test is broken

The source revlog should not be inlined and it is…
parent 6a78b5a1
No related branches found
No related tags found
3 merge requests!728Merge stable into default,!723Draft: never inline changelog,!716fix censor on 6.6
......@@ -294,5 +294,5 @@
$ hg cat -r "$H2^^^" target | head -n 10
Tainted file now super sanitized
Can censor after revlog has expanded to no longer permit inline storage
Can censor enough revision to move back to inline storage
......@@ -298,4 +298,8 @@
$ hg debugrevlogstats | grep target
rev-count data-size inl type target
8 ????????? no file target (glob) (revlogv2 !)
8 ????????? yes file target (glob) (revlogv1 !)
$ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000`
> do
> echo "Password: hunter$x" >> target
......@@ -306,4 +310,9 @@
$ hg revert -r "$H2^" target
$ hg ci -m 'cleaned 100k passwords'
$ H2=`hg id --debug -i`
$ hg debugrevlogstats | grep target
rev-count data-size inl type target
10 ????????? no file target (glob) (revlogv2 !)
10 ????????? no file target (glob) (missing-correct-output revlogv1 !)
10 ????????? yes file target (glob) (known-bad-output revlogv1 !)
$ hg --config extensions.censor= censor -r $C5 target
......@@ -309,4 +318,8 @@
$ hg --config extensions.censor= censor -r $C5 target
$ hg debugrevlogstats | grep target
rev-count data-size inl type target
10 ????????? no file target (glob) (revlogv2 !)
10 ????????? yes file target (glob) (revlogv1 !)
$ hg cat -r $C5 target | head -n 10
$ hg cat -r $H2 target | head -n 10
fresh start
......
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