mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
dde572cf5e
Summary: Add a function to compute the sha1 content hash for an overlay file. We persist the computed hash in an extended attribute in the underlying overlay file so that a subsequent read of the attribute doesn't require opening the file to recompute it. Each time the file is mutated, we blow the cached status of the file. Each time the sha1 attribute is read, if the cache is blown, the content hash will be recomputed and set in the overlay file. Each time the file is flushed or sync'd, if the cache is blown, the content hash will be computed and set in the overlay file. Reviewed By: bolinfest Differential Revision: D3302412 fbshipit-source-id: bd45c7a24b732bd0b7474b7f96e82936870b2117 |
||
---|---|---|
.. | ||
cli | ||
config | ||
importer/git | ||
inodes | ||
integration | ||
model | ||
overlay | ||
rocksdb | ||
service | ||
store |