| 677 | } |
| 678 | |
| 679 | fn operation_kind(kind: OperationKind) -> &'static str { |
| 680 | match kind { |
| 681 | OperationKind::Anchor => "anchor", |
| 682 | OperationKind::Record => "record", |
| 683 | OperationKind::PromoteSnapshot => "promote_snapshot", |
| 684 | OperationKind::SplitSnapshot => "split_snapshot", |
| 685 | OperationKind::SwitchView => "switch_view", |
| 686 | OperationKind::Materialize => "materialize", |
| 687 | OperationKind::ImportGitHead => "import_git_head", |
| 688 | OperationKind::ImportGitRefs => "import_git_refs", |
| 689 | OperationKind::ExportGitRefs => "export_git_refs", |
| 690 | OperationKind::ProjectState => "project_state", |
| 691 | OperationKind::SynthesizeGit => "synthesize_git", |
| 692 | OperationKind::ResurrectBinding => "resurrect_binding", |
| 693 | OperationKind::Insert => "insert", |
| 694 | OperationKind::Unrecord => "unrecord", |
| 695 | OperationKind::Tag => "tag", |
| 696 | OperationKind::Recover => "recover", |
| 697 | OperationKind::Undo => "undo", |
| 698 | OperationKind::Gc => "gc", |
| 699 | OperationKind::Restore => "restore", |
| 700 | OperationKind::Pull => "pull", |
| 701 | OperationKind::Push => "push", |
| 702 | OperationKind::Consolidate => "consolidate", |
| 703 | OperationKind::RefMapping => "ref_mapping", |
| 704 | OperationKind::Repair => "repair", |
| 705 | OperationKind::Cutover => "cutover", |
| 706 | OperationKind::ReconcileWorkingCopy => "reconcile_working_copy", |
| 707 | } |
| 708 | } |
| 709 | |
| 710 | fn verification_state(state: OperationVerificationState) -> &'static str { |
| 711 | match state { |