This is an archive of the discontinued Mercurial Phabricator instance.

censor: extract the part about writing the other revision in a function
ClosedPublic

Authored by marmoute on Jun 22 2021, 7:27 PM.

Details

Summary

The v2_censor function is huge, now that its content has settled a bit it is a
good time to split individual part inside dedicated function.

We continue with a small function that add a non-censored revision back to the
revlog.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Jun 22 2021, 7:27 PM
Alphare accepted this revision.Jul 1 2021, 4:49 AM
Alphare added a subscriber: Alphare.
Alphare added inline comments.
mercurial/revlogutils/rewrite.py
294

Nit: why the quotes around "normal"? I would use "unchanged" to be clearer maybe?

This revision is now accepted and ready to land.Jul 1 2021, 4:49 AM
marmoute added inline comments.Jul 1 2021, 4:58 AM
mercurial/revlogutils/rewrite.py
294

The delta might have been changed. So it is not really "unchanged".