Create a new Draft view parented on an explicit named parent. Unlike [`Repository::create_view`], which parents on the nearest shared ancestor of the *current* view, this method parents on the given view regardless of what is currently checked out. The new view's change log starts empty. Returns `ViewNotFound` if the parent does not exist and `ViewAlreadyExists` if the name is taken.
(
&mut self,
name: &str,
parent_name: &str,
)
| 607 | /// Returns `ViewNotFound` if the parent does not exist and |
| 608 | /// `ViewAlreadyExists` if the name is taken. |
| 609 | pub fn create_draft_view( |
| 610 | &mut self, |
| 611 | name: &str, |
| 612 | parent_name: &str, |
| 613 | ) -> Result<(), RepositoryError> { |
| 614 | self.create_view_with_identity(name, ViewScope::Draft, Some(parent_name)) |
| 615 | } |
| 616 | |
| 617 | /// Create a view with an explicit scope and optional named parent. |
| 618 | /// |