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

Method get_change_deps

atomic-core/src/pristine/txn/read.rs:268–277  ·  view source on GitHub ↗
(&self, change_id: NodeId)

Source from the content-addressed store, hash-verified

266 }
267
268 fn get_change_deps(&self, change_id: NodeId) -> PristineResult<Vec<Hash>> {
269 let table = self.txn.open_multimap_table(CHANGE_DEPS)?;
270 let mut result = Vec::new();
271 let iter = table.get(change_id.get())?;
272 for item in iter {
273 let value = item?;
274 result.push(Hash::from_bytes(*value.value()));
275 }
276 Ok(result)
277 }
278
279 fn is_change_deps_indexed(&self, change_id: NodeId) -> PristineResult<bool> {
280 let table = self.txn.open_table(CHANGE_DEPS_INDEXED)?;

Callers 2

supersedor_in_forkFunction · 0.45

Calls 2

getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected