Struct silver_platter::WorkingTree
source · pub struct WorkingTree(pub Py<PyAny>);Tuple Fields§
§0: Py<PyAny>Implementations§
source§impl WorkingTree
impl WorkingTree
pub fn new(obj: Py<PyAny>) -> Result<WorkingTree, PyErr>
pub fn branch(&self) -> Branch
pub fn controldir(&self) -> ControlDir
pub fn open(path: &Path) -> Result<WorkingTree, WorkingTreeOpenError>
pub fn open_containing( path: &Path ) -> Result<(WorkingTree, PathBuf), WorkingTreeOpenError>
pub fn basis_tree(&self) -> Box<dyn Tree, Global>
pub fn get_tag_dict( &self ) -> Result<HashMap<String, RevisionId, RandomState>, PyErr>
pub fn abspath(&self, path: &Path) -> Result<PathBuf, PyErr>
pub fn supports_setting_file_ids(&self) -> bool
pub fn add(&self, paths: &[&Path]) -> Result<(), PyErr>
pub fn smart_add(&self, paths: &[&Path]) -> Result<(), PyErr>
pub fn commit( &self, message: &str, allow_pointless: Option<bool>, committer: Option<&str>, specific_files: Option<&[&Path]> ) -> Result<RevisionId, CommitError>
pub fn last_revision(&self) -> Result<RevisionId, PyErr>
Trait Implementations§
source§impl MutableTree for WorkingTree
impl MutableTree for WorkingTree
source§impl ToPyObject for WorkingTree
impl ToPyObject for WorkingTree
source§impl Tree for WorkingTree
impl Tree for WorkingTree
fn get_tag_dict( &self ) -> Result<HashMap<String, RevisionId, RandomState>, PyErr>
fn get_file(&self, path: &Path) -> Result<Box<dyn Read, Global>, Error>
fn get_file_text(&self, path: &Path) -> Result<Vec<u8, Global>, Error>
fn get_file_lines( &self, path: &Path ) -> Result<Vec<Vec<u8, Global>, Global>, Error>
fn lock_read(&self) -> Result<Lock, PyErr>
fn has_filename(&self, path: &Path) -> bool
fn get_parent_ids(&self) -> Result<Vec<RevisionId, Global>, PyErr>
fn is_ignored(&self, path: &Path) -> Option<String>
fn is_versioned(&self, path: &Path) -> bool
fn iter_changes( &self, other: &Box<dyn Tree, Global>, specific_files: Option<&[&Path]>, want_unversioned: Option<bool>, require_versioned: Option<bool> ) -> Result<Box<dyn Iterator<Item = Result<TreeChange, PyErr>>, Global>, PyErr>
fn has_versioned_directories(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for WorkingTree
impl Send for WorkingTree
impl Sync for WorkingTree
impl Unpin for WorkingTree
impl UnwindSafe for WorkingTree
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