##// END OF EJS Templates
censor: drop size limitation on the tombstone...
marmoute -
r48184:8089d0fa default
parent child Browse files
Show More
@@ -29,11 +29,6 b' def v1_censor(rl, tr, censornode, tombst'
29 29 censorrev = rl.rev(censornode)
30 30 tombstone = storageutil.packmeta({b'censored': tombstone}, b'')
31 31
32 if len(tombstone) > rl.rawsize(censorrev):
33 raise error.Abort(
34 _(b'censor tombstone must be no longer than censored data')
35 )
36
37 32 # Rewriting the revlog in place is hard. Our strategy for censoring is
38 33 # to create a new revlog, copy all revisions to it, then replace the
39 34 # revlogs on transaction close.
@@ -66,12 +66,6 b' Verify target contents before censorship'
66 66 $ hg cat -r 0 target | head -n 10
67 67 Initially untainted file
68 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
75 69 Censor revision with 2 offenses
76 70
77 71 (this also tests file pattern matching: path relative to cwd case)
General Comments 0
You need to be logged in to leave comments. Login now