view mercurial/__init__.py @ 22934:8a096d4d0862

revlog: support importing censored file revision tombstones This change allows a revision log to not fail integrity checks when applying a changegroup delta (eg from a bundle) results in a censored file tombstone. The tombstone is inserted as-is, so future integrity verification will observe the tombstone. Deltas based on the tombstone will also remain correct. The new code path is encountered for *exactly* the cases where _addrevision is importing a tombstone from a changegroup. When committing a file containing the "magic" tombstone text, the "text" parameter will be non-empty and the checkhash call is not executed (and when committing, the node will be computed to match the "magic" tombstone text).
author Mike Edgar <adgar@google.com>
date Wed, 03 Sep 2014 16:34:29 -0400
parents 9117c6561b0b
children 4374d819ccd5
line wrap: on
line source