(version: Option<u32>)
| 558 | } |
| 559 | |
| 560 | fn describe_span_capability_state(version: Option<u32>) { |
| 561 | use atomic_core::pristine::SPAN_RANGE_CAPABILITY; |
| 562 | match version { |
| 563 | Some(minimum) if minimum == SPAN_RANGE_CAPABILITY.minimum_version() => print_success( |
| 564 | "Repository requires span-range-graph v3: native span recording is already enabled.", |
| 565 | ), |
| 566 | Some(version) => print_warning(&format!( |
| 567 | "Repository requires legacy span-range-graph v{version}; \ |
| 568 | `atomic doctor migrate-spans` would raise the lease to v3." |
| 569 | )), |
| 570 | None => print_info( |
| 571 | "Repository has no span capability: recorded changes are graph-origin. \ |
| 572 | `atomic doctor migrate-spans` would enable native span recording.", |
| 573 | ), |
| 574 | } |
| 575 | } |
| 576 | |
| 577 | fn print_diagnosis(diagnosis: &atomic_repository::WorkingCopyRegistrationDiagnosis) { |
| 578 | print_info(&format!( |
no test coverage detected