Mercurial > hg-stable
changeset 51137:22d11305f365 stable
censor: show that the `not-inline` → `inline` test is broken
The source revlog should not be inlined and it is…
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 02 Dec 2023 01:06:35 +0100 |
parents | 6a78b5a1d1ab |
children | c136c797740e |
files | tests/test-censor.t |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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