Until the span index writer is integrated, publishing only the ordinary graph hunks would silently discard the span operations.
(change: &Change)
| 405 | // Until the span index writer is integrated, publishing only the ordinary |
| 406 | // graph hunks would silently discard the span operations. |
| 407 | pub(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`]. |
no outgoing calls
no test coverage detected