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

Function sandbox_view_chain

atomic-repository/src/repository/remote_cache.rs:387–397  ·  view source on GitHub ↗

All ancestors contributing to the canonical effective closure, including ancestors of shared views. Each is exported with its own log.

(
    txn: &atomic_core::pristine::ReadTxn,
    state: &atomic_core::pristine::ViewState,
)

Source from the content-addressed store, hash-verified

385/// All ancestors contributing to the canonical effective closure, including
386/// ancestors of shared views. Each is exported with its own log.
387fn sandbox_view_chain(
388 txn: &atomic_core::pristine::ReadTxn,
389 state: &atomic_core::pristine::ViewState,
390) -> Result<Vec<atomic_core::pristine::ViewState>, RepositoryError> {
391 Ok(txn
392 .resolve_full_view_chain(state)
393 .map_err(db)?
394 .into_iter()
395 .filter(|ancestor| ancestor.id != state.id)
396 .collect())
397}
398
399fn own_change_ids(
400 txn: &atomic_core::pristine::ReadTxn,

Callers 2

effective_stateFunction · 0.85

Calls 3

collectMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected