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 create_branch_convenience(base: &Url) -> Result<Box<dyn Branch>, PyErr>
pub fn create_standalone_workingtree( base: &Path, format: Option<impl AsFormat> ) -> Result<WorkingTree, PyErr>
pub fn cloning_metadir(&self) -> ControlDirFormat
pub fn open_tree_or_branch( location: &Url, name: Option<&str> ) -> Result<(Option<WorkingTree>, Box<dyn Branch>), BranchOpenError>
👎Deprecated
pub fn open(url: &Url) -> Result<ControlDir, PyErr>
👎Deprecated
pub fn open_containing_from_transport( transport: &Transport, probers: Option<&[Prober]> ) -> Result<(ControlDir, String), PyErr>
👎Deprecated
pub fn open_from_transport( transport: &Transport, probers: Option<&[Prober]> ) -> Result<ControlDir, PyErr>
👎Deprecated
pub fn create_branch( &self, name: Option<&str> ) -> Result<Box<dyn Branch>, PyErr>
pub fn open_branch( &self, branch_name: Option<&str> ) -> Result<Box<dyn Branch>, BranchOpenError>
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>, PyErr>
pub fn sprout( &self, target: Url, source_branch: Option<&dyn Branch>, create_tree_if_local: Option<bool>, stacked: Option<bool> ) -> ControlDir
pub fn open_workingtree(&self) -> Result<WorkingTree, PyErr>
pub fn branch_names(&self) -> Result<Vec<String>, PyErr>
Trait Implementations§
source§impl FromPyObject<'_> for ControlDir
impl FromPyObject<'_> for ControlDir
source§impl ToPyObject for ControlDir
impl ToPyObject for ControlDir
Auto Trait Implementations§
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