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

Method add_dependent

atomic-repository/src/unrecord.rs:404–411  ·  view source on GitHub ↗

Add a dependent.

(&mut self, dep: Hash)

Source from the content-addressed store, hash-verified

402
403 /// Add a dependent.
404 pub fn add_dependent(&mut self, dep: Hash) {
405 self.dependents.push(dep);
406 self.can_unrecord = false;
407 self.block_reason = Some(format!(
408 "Change has {} dependent(s) in the view",
409 self.dependents.len()
410 ));
411 }
412
413 /// Check if this change has dependents.
414 pub fn has_dependents(&self) -> bool {

Callers 1

Calls 1

pushMethod · 0.45

Tested by 1