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 { ... }
}