Mercurial > hg
comparison tests/test-censor.t @ 49825:2f2682f40ea0
tests: use the `--quiet` flag for verify when applicable
This reduces a lot of the test output that was otherwise useless, and also
makes it a lot easier to add things to verify without breaking the test suite
because of additional output.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Mon, 02 May 2022 17:47:38 +0200 |
parents | 3f86ee422095 |
children | c84844cd523a |
comparison
equal
deleted
inserted
replaced
49824:fdd227585d5a | 49825:2f2682f40ea0 |
---|---|
203 > policy = ignore | 203 > policy = ignore |
204 > EOF | 204 > EOF |
205 | 205 |
206 Repo passes verification with warnings with explicit config | 206 Repo passes verification with warnings with explicit config |
207 | 207 |
208 $ hg verify | 208 $ hg verify -q |
209 checking changesets | |
210 checking manifests | |
211 crosschecking files in changesets and manifests | |
212 checking files | |
213 checked 5 changesets with 7 changes to 2 files | |
214 | 209 |
215 May update to revision with censored data with explicit config | 210 May update to revision with censored data with explicit config |
216 | 211 |
217 $ hg update -r $C2 | 212 $ hg update -r $C2 |
218 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 213 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
328 Tainted file now super sanitized | 323 Tainted file now super sanitized |
329 $ hg cat -r $C2 target | head -n 10 | 324 $ hg cat -r $C2 target | head -n 10 |
330 $ hg cat -r $C1 target | head -n 10 | 325 $ hg cat -r $C1 target | head -n 10 |
331 $ hg cat -r 0 target | head -n 10 | 326 $ hg cat -r 0 target | head -n 10 |
332 Initially untainted file | 327 Initially untainted file |
333 $ hg verify | 328 $ hg verify -q |
334 checking changesets | |
335 checking manifests | |
336 crosschecking files in changesets and manifests | |
337 checking files | |
338 checked 12 changesets with 13 changes to 2 files | |
339 | 329 |
340 Repo cloned before tainted content introduced can pull censored nodes | 330 Repo cloned before tainted content introduced can pull censored nodes |
341 | 331 |
342 $ cd ../rpull | 332 $ cd ../rpull |
343 $ hg cat -r tip target | head -n 10 | 333 $ hg cat -r tip target | head -n 10 |
344 Initially untainted file | 334 Initially untainted file |
345 $ hg verify | 335 $ hg verify -q |
346 checking changesets | |
347 checking manifests | |
348 crosschecking files in changesets and manifests | |
349 checking files | |
350 checked 1 changesets with 2 changes to 2 files | |
351 $ hg pull -r $H1 -r $H2 | 336 $ hg pull -r $H1 -r $H2 |
352 pulling from $TESTTMP/r | 337 pulling from $TESTTMP/r |
353 searching for changes | 338 searching for changes |
354 adding changesets | 339 adding changesets |
355 adding manifests | 340 adding manifests |
367 Tainted file now super sanitized | 352 Tainted file now super sanitized |
368 $ hg cat -r $C2 target | head -n 10 | 353 $ hg cat -r $C2 target | head -n 10 |
369 $ hg cat -r $C1 target | head -n 10 | 354 $ hg cat -r $C1 target | head -n 10 |
370 $ hg cat -r 0 target | head -n 10 | 355 $ hg cat -r 0 target | head -n 10 |
371 Initially untainted file | 356 Initially untainted file |
372 $ hg verify | 357 $ hg verify -q |
373 checking changesets | |
374 checking manifests | |
375 crosschecking files in changesets and manifests | |
376 checking files | |
377 checked 12 changesets with 13 changes to 2 files | |
378 | 358 |
379 Censored nodes can be pushed if they censor previously unexchanged nodes | 359 Censored nodes can be pushed if they censor previously unexchanged nodes |
380 | 360 |
381 $ echo 'Passwords: hunter2hunter2' > target | 361 $ echo 'Passwords: hunter2hunter2' > target |
382 $ hg ci -m 're-add password from clone' target | 362 $ hg ci -m 're-add password from clone' target |
427 Re-sanitized; nothing to see here | 407 Re-sanitized; nothing to see here |
428 $ hg update $CLEANREV | 408 $ hg update $CLEANREV |
429 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 409 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
430 $ cat target | head -n 10 | 410 $ cat target | head -n 10 |
431 Re-sanitized; nothing to see here | 411 Re-sanitized; nothing to see here |
432 $ hg verify | 412 $ hg verify -q |
433 checking changesets | |
434 checking manifests | |
435 crosschecking files in changesets and manifests | |
436 checking files | |
437 checked 14 changesets with 15 changes to 2 files | |
438 | 413 |
439 Grepping only warns, doesn't error out | 414 Grepping only warns, doesn't error out |
440 | 415 |
441 $ cd ../rpull | 416 $ cd ../rpull |
442 $ hg grep 'Normal file' | 417 $ hg grep 'Normal file' |
486 (run 'hg heads .' to see heads, 'hg merge' to merge) | 461 (run 'hg heads .' to see heads, 'hg merge' to merge) |
487 $ hg update $H2 | 462 $ hg update $H2 |
488 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 463 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
489 $ cat target | head -n 10 | 464 $ cat target | head -n 10 |
490 Re-sanitized; nothing to see here | 465 Re-sanitized; nothing to see here |
491 $ hg verify | 466 $ hg verify -q |
492 checking changesets | |
493 checking manifests | |
494 crosschecking files in changesets and manifests | |
495 checking files | |
496 checked 14 changesets with 15 changes to 2 files | |
497 $ cd ../r | 467 $ cd ../r |
498 | 468 |
499 Can import bundle where first revision of a file is censored | 469 Can import bundle where first revision of a file is censored |
500 | 470 |
501 $ hg init ../rinit | 471 $ hg init ../rinit |