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

Function check_missing_dependencies

atomic-repository/src/apply/mod.rs:142–147  ·  view source on GitHub ↗

Check what dependencies are missing for a change. This is useful for determining what needs to be fetched from a remote before a change can be inserted. # Arguments `txn` - Read transaction `change` - The change to check # Returns A vector of missing dependency hashes (empty if all deps are present).

(
    txn: &T,
    change: &Change,
)

Source from the content-addressed store, hash-verified

140///
141/// A vector of missing dependency hashes (empty if all deps are present).
142pub fn check_missing_dependencies<T: GraphTxnT>(
143 txn: &T,
144 change: &Change,
145) -> InsertResult<Vec<Hash>> {
146 verify_dependencies(txn, change).map_err(|e| InsertError::Database(e.to_string()))
147}
148
149/// Determine the order to insert a set of changes respecting dependencies.
150///

Callers

nothing calls this directly

Calls 1

verify_dependenciesFunction · 0.85

Tested by

no test coverage detected