Struct silver_platter::ControlDir
source · pub struct ControlDir(/* private fields */);Implementations§
source§impl ControlDir
impl ControlDir
pub fn new(obj: Py<PyAny>) -> ControlDir
pub fn get_format(&self) -> ControlDirFormat
pub fn create_branch_convenience(base: &Url) -> Result<Box<dyn Branch>, Error>
👎Deprecated
pub fn create_standalone_workingtree( base: &Path, format: impl AsFormat, ) -> Result<WorkingTree, Error>
👎Deprecated
pub fn cloning_metadir(&self) -> ControlDirFormat
pub fn create_branch( &self, name: Option<&str>, ) -> Result<Box<dyn Branch>, Error>
pub fn create_repository( &self, shared: Option<bool>, ) -> Result<Repository, Error>
pub fn open_branch( &self, branch_name: Option<&str>, ) -> Result<Box<dyn Branch>, Error>
pub fn create_workingtree(&self) -> Result<WorkingTree, Error>
pub fn set_branch_reference( &self, branch: &dyn Branch, name: Option<&str>, ) -> Result<(), Error>
pub fn push_branch( &self, source_branch: &dyn Branch, to_branch_name: Option<&str>, stop_revision: Option<&RevisionId>, overwrite: Option<bool>, tag_selector: Option<Box<dyn Fn(String) -> bool>>, ) -> Result<Box<dyn Branch>, Error>
pub fn sprout( &self, target: Url, source_branch: Option<&dyn Branch>, create_tree_if_local: Option<bool>, stacked: Option<bool>, revision_id: Option<&RevisionId>, ) -> ControlDir
pub fn has_workingtree(&self) -> bool
pub fn open_workingtree(&self) -> Result<WorkingTree, Error>
pub fn branch_names(&self) -> Result<Vec<String>, Error>
Trait Implementations§
source§impl Debug for ControlDir
impl Debug for ControlDir
source§impl FromPyObject<'_> for ControlDir
impl FromPyObject<'_> for ControlDir
source§fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<ControlDir, PyErr>
fn extract_bound(obj: &Bound<'_, PyAny>) -> Result<ControlDir, PyErr>
source§impl ToPyObject for ControlDir
impl ToPyObject for ControlDir
Auto Trait Implementations§
impl Freeze for ControlDir
impl !RefUnwindSafe for ControlDir
impl Send for ControlDir
impl Sync for ControlDir
impl Unpin for ControlDir
impl UnwindSafe for ControlDir
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more