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

Function check_missing_dependencies

atomic-repository/src/apply/mod.rs:138–143  ·  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

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

Callers

nothing calls this directly

Calls 1

verify_dependenciesFunction · 0.85

Tested by

no test coverage detected