MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / hydrate_cache

Function hydrate_cache

atomic-repository/tests/it/remote_cache_parity_test.rs:108–113  ·  view source on GitHub ↗
(host: &Repository, cache: &Repository, view: &str)

Source from the content-addressed store, hash-verified

106}
107
108fn hydrate_cache(host: &Repository, cache: &Repository, view: &str) {
109 fetch_changes(host, cache, view);
110 let inodes = cache.sandbox_slice_inodes().unwrap();
111 let slice = host.export_sandbox_slice(view, &inodes).unwrap();
112 cache.import_sandbox_slice(&slice).unwrap();
113}
114
115fn assert_clean(repo: &Repository) {
116 let status = repo

Calls 5

fetch_changesFunction · 0.85
sandbox_slice_inodesMethod · 0.80
export_sandbox_sliceMethod · 0.80
import_sandbox_sliceMethod · 0.80
unwrapMethod · 0.45

Tested by

no test coverage detected