mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
d2a4f4e042
Summary: getfiles implementation for lfs The implementation is the following: - get file size from file envelope (retrieve from manifold by HgNodeId) - if file size > threshold from lfs config - fetch file to memory, get sha256 of the file, will be fixed later, as this approach consumes a lot of memory, but we don't have any mapping from sha256 - blake2 [T35239107](https://our.intern.facebook.com/intern/tasks/?t=35239107) - generate lfs metadata file according to [LfsPlan](https://www.mercurial-scm.org/wiki/LfsPlan) - set metakeyflag (REVID_STORED_EXT) in the file header - if file size < threshold, process usual way Reviewed By: StanislavGlebik Differential Revision: D10335988 fbshipit-source-id: 6a1ba671bae46159bcc16613f99a0e21cf3b5e3a |
||
---|---|---|
.. | ||
if | ||
mocks | ||
src | ||
tests/src | ||
Cargo.toml |