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

Function multiple_heads_error

atomic-repository/src/repository/operation.rs:4686–4698  ·  view source on GitHub ↗
(scope: OperationScope, heads: &[OperationId])

Source from the content-addressed store, hash-verified

4684}
4685
4686fn multiple_heads_error(scope: OperationScope, heads: &[OperationId]) -> RepositoryError {
4687 RepositoryError::InvalidOperation {
4688 message: format!(
4689 "{scope} has {} operation heads; CB-1B refuses consolidation until CB-1C: {}",
4690 heads.len(),
4691 heads
4692 .iter()
4693 .map(ToString::to_string)
4694 .collect::<Vec<_>>()
4695 .join(", ")
4696 ),
4697 }
4698}
4699
4700fn lease_divergence_error(
4701 effect: &EffectPlan,

Calls

no outgoing calls

Tested by

no test coverage detected