Struct silver_platter::WorkingTree
source · pub struct WorkingTree(pub Py<PyAny>);
Tuple Fields§
§0: Py<PyAny>
Implementations§
source§impl WorkingTree
impl WorkingTree
sourcepub fn controldir(&self) -> ControlDir
pub fn controldir(&self) -> ControlDir
Return the control directory for this working tree.
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>
pub fn revision_tree(&self, revision_id: &RevisionId) -> Box<dyn Tree>
pub fn get_tag_dict(&self) -> Result<HashMap<String, RevisionId>, PyErr>
pub fn abspath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn relpath(&self, path: &Path) -> Result<PathBuf, Error>
pub fn supports_setting_file_ids(&self) -> bool
pub fn add(&self, paths: &[&Path]) -> Result<(), Error>
pub fn smart_add(&self, paths: &[&Path]) -> Result<(), Error>
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>
pub fn pull(&self, source: &dyn Branch) -> Result<(), Error>
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>, PyErr>
fn get_file(&self, path: &Path) -> Result<Box<dyn Read>, Error>
fn get_file_text(&self, path: &Path) -> Result<Vec<u8>, Error>
fn get_file_lines(&self, path: &Path) -> Result<Vec<Vec<u8>>, Error>
fn lock_read(&self) -> Result<Lock, Error>
fn has_filename(&self, path: &Path) -> bool
fn get_parent_ids(&self) -> Result<Vec<RevisionId>, Error>
fn is_ignored(&self, path: &Path) -> Option<String>
fn is_versioned(&self, path: &Path) -> bool
fn iter_changes( &self, other: &dyn Tree, specific_files: Option<&[&Path]>, want_unversioned: Option<bool>, require_versioned: Option<bool> ) -> Result<Box<dyn Iterator<Item = Result<TreeChange, Error>>>, Error>
fn has_versioned_directories(&self) -> bool
fn preview_transform(&self) -> Result<TreeTransform, Error>
fn list_files( &self, include_root: Option<bool>, from_dir: Option<&Path>, recursive: Option<bool>, recurse_nested: Option<bool> ) -> Result<Box<dyn Iterator<Item = Result<(PathBuf, bool, Kind, TreeEntry), Error>>>, Error>
fn iter_child_entries( &self, path: &Path ) -> Result<Box<dyn Iterator<Item = Result<(PathBuf, Kind, TreeEntry), Error>>>, Error>
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