# HG changeset patch # User Pierre-Yves David # Date 1701475595 -3600 # Node ID 22d11305f3651c1184e6d4e70ddd3c97666990aa # Parent 6a78b5a1d1ab14e5abb382050efa8d6ae731845d censor: show that the `not-inline` → `inline` test is broken The source revlog should not be inlined and it is… diff -r 6a78b5a1d1ab -r 22d11305f365 tests/test-censor.t --- a/tests/test-censor.t Sun Dec 03 04:49:49 2023 +0100 +++ b/tests/test-censor.t Sat Dec 02 01:06:35 2023 +0100 @@ -294,8 +294,12 @@ $ 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 + $ 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,7 +310,16 @@ $ 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 + $ 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