| 1593 | /// that the complete backup marker is durable and callers may start effects. |
| 1594 | #[cfg(test)] |
| 1595 | pub(super) fn prepare_switch_operation( |
| 1596 | &self, |
| 1597 | operation_lock: &WorkingCopyOperationLockGuard, |
| 1598 | before: RepoStateRef, |
| 1599 | after: RepoStateRef, |
| 1600 | effects: Vec<EffectPlan>, |
| 1601 | actor: ActorRef, |
| 1602 | timestamp_ms: i64, |
| 1603 | ) -> Result<PreparedSwitchOperation, RepositoryError> { |
| 1604 | self.prepare_working_copy_transition( |
| 1605 | operation_lock, |
| 1606 | OperationKind::SwitchView, |
| 1607 | None, |
| 1608 | before, |
| 1609 | after, |
| 1610 | effects, |
| 1611 | Vec::new(), |
| 1612 | actor, |
| 1613 | timestamp_ms, |
| 1614 | ) |
| 1615 | } |
| 1616 | |
| 1617 | #[allow(clippy::too_many_arguments)] |
| 1618 | #[allow(clippy::too_many_arguments)] |