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

Function reject_unsupported_span_change

atomic-repository/src/apply/mod.rs:407–414  ·  view source on GitHub ↗

Until the span index writer is integrated, publishing only the ordinary graph hunks would silently discard the span operations.

(change: &Change)

Source from the content-addressed store, hash-verified

405// Until the span index writer is integrated, publishing only the ordinary
406// graph hunks would silently discard the span operations.
407pub(crate) fn reject_unsupported_span_change(change: &Change) -> InsertResult<()> {
408 if change.hashed.span.is_some() {
409 return Err(InsertError::InvalidChange {
410 message: "span changes require a span-aware repository writer".to_string(),
411 });
412 }
413 Ok(())
414}
415
416/// The shared hunk/FileOps mutation stage of [`write_change_to_graph`] and
417/// [`apply_change_hunks_without_membership`].

Callers 2

write_change_to_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected