Show More
@@ -29,11 +29,6 b' def v1_censor(rl, tr, censornode, tombst' | |||||
29 | censorrev = rl.rev(censornode) |
|
29 | censorrev = rl.rev(censornode) | |
30 | tombstone = storageutil.packmeta({b'censored': tombstone}, b'') |
|
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 | # Rewriting the revlog in place is hard. Our strategy for censoring is |
|
32 | # Rewriting the revlog in place is hard. Our strategy for censoring is | |
38 | # to create a new revlog, copy all revisions to it, then replace the |
|
33 | # to create a new revlog, copy all revisions to it, then replace the | |
39 | # revlogs on transaction close. |
|
34 | # revlogs on transaction close. |
@@ -66,12 +66,6 b' Verify target contents before censorship' | |||||
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 |
|
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 | 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) |
General Comments 0
You need to be logged in to leave comments.
Login now