comparison tests/test-censor.t @ 47392:8089d0fa8400

censor: drop size limitation on the tombstone This limitation seems to date back from a previous implementation of censors, were the revision were censored" in place. For a long while the implementation actually involved rewriting the revlog before replacing the original data. So it looks like we can safely remove this limitation. The tests suite agrees. Differential Revision: https://phab.mercurial-scm.org/D10790
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 21 May 2021 20:08:11 +0200
parents 65b86f516ba2
children f8330a3fc39f
comparison
equal deleted inserted replaced
47391:33d626910374 47392:8089d0fa8400
63 $ hg cat -r $C1 target | head -n 10 63 $ hg cat -r $C1 target | head -n 10
64 Tainted file 64 Tainted file
65 Passwords: hunter2 65 Passwords: hunter2
66 $ hg cat -r 0 target | head -n 10 66 $ hg cat -r 0 target | head -n 10
67 Initially untainted file 67 Initially untainted file
68
69 Try to censor revision with too large of a tombstone message
70
71 $ hg censor -r $C1 -t 'blah blah blah blah blah blah blah blah bla' target
72 abort: censor tombstone must be no longer than censored data
73 [255]
74 68
75 Censor revision with 2 offenses 69 Censor revision with 2 offenses
76 70
77 (this also tests file pattern matching: path relative to cwd case) 71 (this also tests file pattern matching: path relative to cwd case)
78 72