Mercurial > hg
comparison tests/test-censor.t @ 51156: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 | 15a50bfaeb79 |
children | 3e2a878fb96f |
comparison
equal
deleted
inserted
replaced
51152:6a78b5a1d1ab | 51156:22d11305f365 |
---|---|
292 target: no such file in rev 452ec1762369 | 292 target: no such file in rev 452ec1762369 |
293 $ hg cat -r $C4 target | head -n 10 | 293 $ hg cat -r $C4 target | head -n 10 |
294 $ hg cat -r "$H2^^^" target | head -n 10 | 294 $ hg cat -r "$H2^^^" target | head -n 10 |
295 Tainted file now super sanitized | 295 Tainted file now super sanitized |
296 | 296 |
297 Can censor after revlog has expanded to no longer permit inline storage | 297 Can censor enough revision to move back to inline storage |
298 | 298 |
299 $ hg debugrevlogstats | grep target | |
300 rev-count data-size inl type target | |
301 8 ????????? no file target (glob) (revlogv2 !) | |
302 8 ????????? yes file target (glob) (revlogv1 !) | |
299 $ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000` | 303 $ for x in `"$PYTHON" $TESTDIR/seq.py 0 50000` |
300 > do | 304 > do |
301 > echo "Password: hunter$x" >> target | 305 > echo "Password: hunter$x" >> target |
302 > done | 306 > done |
303 $ hg ci -m 'add 100k passwords' | 307 $ hg ci -m 'add 100k passwords' |
304 $ H2=`hg id --debug -i` | 308 $ H2=`hg id --debug -i` |
305 $ C5=$H2 | 309 $ C5=$H2 |
306 $ hg revert -r "$H2^" target | 310 $ hg revert -r "$H2^" target |
307 $ hg ci -m 'cleaned 100k passwords' | 311 $ hg ci -m 'cleaned 100k passwords' |
308 $ H2=`hg id --debug -i` | 312 $ H2=`hg id --debug -i` |
313 $ hg debugrevlogstats | grep target | |
314 rev-count data-size inl type target | |
315 10 ????????? no file target (glob) (revlogv2 !) | |
316 10 ????????? no file target (glob) (missing-correct-output revlogv1 !) | |
317 10 ????????? yes file target (glob) (known-bad-output revlogv1 !) | |
309 $ hg --config extensions.censor= censor -r $C5 target | 318 $ hg --config extensions.censor= censor -r $C5 target |
319 $ hg debugrevlogstats | grep target | |
320 rev-count data-size inl type target | |
321 10 ????????? no file target (glob) (revlogv2 !) | |
322 10 ????????? yes file target (glob) (revlogv1 !) | |
310 $ hg cat -r $C5 target | head -n 10 | 323 $ hg cat -r $C5 target | head -n 10 |
311 $ hg cat -r $H2 target | head -n 10 | 324 $ hg cat -r $H2 target | head -n 10 |
312 fresh start | 325 fresh start |
313 | 326 |
314 Repo with censored nodes can be cloned and cloned nodes are censored | 327 Repo with censored nodes can be cloned and cloned nodes are censored |