(&mut self, kind: OperationKind)
| 416 | } |
| 417 | |
| 418 | fn put_operation_kind(&mut self, kind: OperationKind) -> Result<(), OperationCodecError> { |
| 419 | self.put_u8(match kind { |
| 420 | OperationKind::Anchor => 0, |
| 421 | OperationKind::Record => 1, |
| 422 | OperationKind::PromoteSnapshot => 2, |
| 423 | OperationKind::SplitSnapshot => 3, |
| 424 | OperationKind::SwitchView => 4, |
| 425 | OperationKind::Materialize => 5, |
| 426 | OperationKind::ImportGitHead => 6, |
| 427 | OperationKind::ImportGitRefs => 7, |
| 428 | OperationKind::ExportGitRefs => 8, |
| 429 | OperationKind::ProjectState => 9, |
| 430 | OperationKind::SynthesizeGit => 10, |
| 431 | OperationKind::ResurrectBinding => 11, |
| 432 | OperationKind::Insert => 12, |
| 433 | OperationKind::Unrecord => 13, |
| 434 | OperationKind::Tag => 14, |
| 435 | OperationKind::Recover => 15, |
| 436 | OperationKind::Undo => 16, |
| 437 | OperationKind::Gc => 17, |
| 438 | OperationKind::Restore => 18, |
| 439 | OperationKind::Pull => 19, |
| 440 | OperationKind::Push => 20, |
| 441 | OperationKind::Consolidate => 21, |
| 442 | OperationKind::RefMapping => 22, |
| 443 | OperationKind::Repair => 23, |
| 444 | OperationKind::Cutover => 24, |
| 445 | OperationKind::ReconcileWorkingCopy => 25, |
| 446 | }) |
| 447 | } |
| 448 | |
| 449 | fn put_operation_relation( |
| 450 | &mut self, |
no test coverage detected