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

Method load_provenance_graph

atomic-repository/src/repository/changes.rs:687–694  ·  view source on GitHub ↗

Load a provenance graph from the repository by hash.

(
        &self,
        hash: &Hash,
    )

Source from the content-addressed store, hash-verified

685
686 /// Load a provenance graph from the repository by hash.
687 pub fn load_provenance_graph(
688 &self,
689 hash: &Hash,
690 ) -> Result<atomic_core::change::ProvenanceGraph, RepositoryError> {
691 self.change_store
692 .load_provenance_graph(hash)
693 .map_err(|e| RepositoryError::Database(e.to_string()))
694 }
695
696 /// Check if a provenance graph exists in the repository.
697 pub fn has_provenance_graph(&self, hash: &Hash) -> bool {

Callers 5

print_activity_chainFunction · 0.45
map_graph_to_inputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected