pub trait Branch: ToPyObject + Send {
Show 15 methods // Provided methods fn format(&self) -> BranchFormat { ... } fn lock_read(&self) -> Result<Lock, PyErr> { ... } fn tags(&self) -> Result<Tags, PyErr> { ... } fn repository(&self) -> Repository { ... } fn last_revision(&self) -> RevisionId { ... } fn name(&self) -> Option<String> { ... } fn basis_tree(&self) -> Result<RevisionTree, PyErr> { ... } fn get_user_url(&self) -> Url { ... } fn controldir(&self) -> ControlDir { ... } fn push( &self, remote_branch: &dyn Branch, overwrite: bool, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool>> ) -> Result<(), PyErr> { ... } fn pull(&self, source_branch: &dyn Branch) -> Result<(), PyErr> { ... } fn get_public_branch(&self) -> Option<String> { ... } fn get_push_location(&self) -> Option<String> { ... } fn get_submit_branch(&self) -> Option<String> { ... } fn user_transport(&self) -> Transport { ... }
}

Provided Methods§

source

fn format(&self) -> BranchFormat

source

fn lock_read(&self) -> Result<Lock, PyErr>

source

fn tags(&self) -> Result<Tags, PyErr>

source

fn repository(&self) -> Repository

source

fn last_revision(&self) -> RevisionId

source

fn name(&self) -> Option<String>

source

fn basis_tree(&self) -> Result<RevisionTree, PyErr>

source

fn get_user_url(&self) -> Url

source

fn controldir(&self) -> ControlDir

source

fn push( &self, remote_branch: &dyn Branch, overwrite: bool, stop_revision: Option<&RevisionId>, tag_selector: Option<Box<dyn Fn(String) -> bool>> ) -> Result<(), PyErr>

source

fn pull(&self, source_branch: &dyn Branch) -> Result<(), PyErr>

source

fn get_public_branch(&self) -> Option<String>

source

fn get_push_location(&self) -> Option<String>

source

fn get_submit_branch(&self) -> Option<String>

source

fn user_transport(&self) -> Transport

Implementors§