Get the local view name to push from. Returns the explicitly specified view or the working copy's desired view. Used by the CB-4B read-only preflight, which resolves authority from the working-copy record before writable open.
(&self, repo: &Repository)
| 363 | /// Used by the CB-4B read-only preflight, which resolves authority from the |
| 364 | /// working-copy record before writable open. |
| 365 | fn get_local_view(&self, repo: &Repository) -> CliResult<String> { |
| 366 | if let Some(view) = &self.from_view { |
| 367 | return Ok(view.clone()); |
| 368 | } |
| 369 | |
| 370 | let working_copy = repo |
| 371 | .require_working_copy_id() |
| 372 | .map_err(CliError::Repository)?; |
| 373 | repo.desired_view_name(working_copy) |
| 374 | .map_err(CliError::Repository) |
| 375 | } |
| 376 | |
| 377 | /// Get the local view name from retained WorkspaceTxn authority. |
| 378 | fn get_local_view_from_txn( |
no test coverage detected