mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
4e9f826728
Summary: Currently, any sort of `Bytes` can be stored in the blobstore. That caused me to make several mistakes while writing the code to store bonsai changesets, because I'd just end up storing the wrong set of `Bytes`. Introduce stronger typing so that only types that explicitly implement `BlobStorable` can be stored in the blobstore. Currently, these sorts of blobs can be stored in the blob store: * `ChangesetBlob` and `ContentBlob` in `mononoke-types` (these are Thrift-serialized structures) * The envelope `RawNodeBlob` and `RawCSBlob` types in `blobrepo`, once converted to `EnvelopeBlob` instances * `HgBlob`, which contains revlog data (manifests or files) exactly as serialized by Mercurial Reviewed By: StanislavGlebik Differential Revision: D7627290 fbshipit-source-id: d1bcbde8881e365dec99618556e7b054985bccf7 |
||
---|---|---|
.. | ||
blobimport | ||
new_blobimport | ||
dumprev.rs | ||
idxdump.rs |