This is an archive of the discontinued Mercurial Phabricator instance.

revlog: split the content verification of a node into a separate method
ClosedPublic

Authored by mharbison72 on Dec 23 2019, 2:47 AM.

Details

Summary

This will be used by LFS to tune what is skipped.

In the future, this could also be used by LFS to indicate which nodes tagged
with skipread are simply in need of a blob fetch, so that they can be done in
a batch later. (Currently, skipread also indicates censored data and errors.)
Additionally, it could be used to cache the sha1 hash value for each blob so
that large blobs don't need to be re-read and re-hashed if they are used by
multiple nodes.

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

mharbison72 created this revision.Dec 23 2019, 2:47 AM
indygreg accepted this revision.Dec 23 2019, 12:34 PM

The added function should arguably be a method. But it shouldn't really matter.

This revision is now accepted and ready to land.Dec 23 2019, 12:34 PM