Get the local view name from retained WorkspaceTxn authority.
(
&self,
workspace: &atomic_repository::WorkspaceTxn,
)
| 376 | |
| 377 | /// Get the local view name from retained WorkspaceTxn authority. |
| 378 | fn get_local_view_from_txn( |
| 379 | &self, |
| 380 | workspace: &atomic_repository::WorkspaceTxn, |
| 381 | ) -> CliResult<String> { |
| 382 | if let Some(view) = &self.from_view { |
| 383 | return Ok(view.clone()); |
| 384 | } |
| 385 | Ok(workspace.view().name.clone()) |
| 386 | } |
| 387 | |
| 388 | /// Get the remote view name to declare the leaf view under. |
| 389 | /// |