Skip to content
Snippets Groups Projects
Commit 9cfd7c4f authored by Mike Edgar's avatar Mike Edgar
Browse files

filelog: allow censored files to contain padding data

To ensure delta compatibility, when a revision is censored, it is
padded to match the original data in size. The previous check does
not allow for padding because it was added before padding was found
to be a requirement.

For more background and design of the censorship feature, see:
mercurial.selenic.com/wiki/CensorPlan
parent 8b90a601
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@
def _censoredtext(text):
m, offs = parsemeta(text)
return m and "censored" in m and not text[offs:]
return m and "censored" in m
class filelog(revlog.revlog):
def __init__(self, opener, path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment