This is an archive of the discontinued Mercurial Phabricator instance.

repair: move manifest strip to a separate function
ClosedPublic

Authored by durham on Aug 8 2017, 8:33 PM.

Details

Summary

This moves manifest stripping to a separate function so implementations of the
manifest that don't support stripping can replace this function with a no-op.

I considered adding a strip api to the manifestlog, so other implementations
could make it a no-op there, but it seems like strip might be unique to the
revlog implementation, and therefore shouldn't be present on the generic api.

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

durham created this revision.Aug 8 2017, 8:33 PM
This revision was automatically updated to reflect the committed changes.