mirror of
https://github.com/facebook/sapling.git
synced 2024-12-24 05:21:49 +03:00
6ae1cf9619
Summary: The rust pack stores currently have logic to refresh their list of packs if there's a key miss and if it's been a while since we last loaded the list of packs. In some cases we want to manually trigger this refresh, like if we're in the middle of a histedit and it invokes an external command that produces pack files that the histedit should later consume (like an external amend, that histedit then needs to work on top of). Python pack stores solve this by allowing callers to mark the store for a refresh. Let's add the same logic for rust stores. Once pack files are gone we can delete this. This will be useful for the upcoming migration of treemanifest to Rust contentstore. Filelog usage of the Rust contentstore avoided this issue by recreating the entire contentstore object in certain situations, but refresh seems useful and less expensive. Reviewed By: quark-zju Differential Revision: D23657036 fbshipit-source-id: 7c6438024c3d642bd22256a8e58961a6ee4bc867 |
||
---|---|---|
.. | ||
c_api | ||
src | ||
test | ||
tools | ||
Cargo.toml | ||
cbindgen.toml | ||
CMakeLists.txt |