Struct silver_platter::WorkingTree
source · pub struct WorkingTree(pub Py<PyAny>);Tuple Fields§
§0: Py<PyAny>Implementations§
source§impl WorkingTree
impl WorkingTree
pub fn is_control_filename(&self, path: &Path) -> bool
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, Error>
👎Deprecated: Use ::open instead
pub fn open_containing(path: &Path) -> Result<(WorkingTree, PathBuf), Error>
👎Deprecated: Use ::open_containing instead
pub fn basis_tree(&self) -> Result<RevisionTree, Error>
pub fn revision_tree( &self, revision_id: &RevisionId, ) -> Result<Box<RevisionTree>, Error>
pub fn get_tag_dict(&self) -> Result<HashMap<String, RevisionId>, Error>
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, Error>
pub fn last_revision(&self) -> Result<RevisionId, Error>
pub fn pull( &self, source: &dyn Branch, overwrite: Option<bool>, ) -> Result<(), Error>
Trait Implementations§
source§impl Clone for WorkingTree
impl Clone for WorkingTree
source§fn clone(&self) -> WorkingTree
fn clone(&self) -> WorkingTree
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl MutableInventoryTree for WorkingTree
impl MutableInventoryTree for WorkingTree
source§impl MutableTree for WorkingTree
impl MutableTree for WorkingTree
fn add(&self, files: &[&Path]) -> Result<(), Error>
fn lock_write(&self) -> Result<Lock, Error>
fn put_file_bytes_non_atomic( &self, path: &Path, data: &[u8], ) -> Result<(), Error>
fn has_changes(&self) -> Result<bool, Error>
fn mkdir(&self, path: &Path) -> Result<(), Error>
fn remove(&self, files: &[&Path]) -> Result<(), Error>
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>, Error>
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_symlink_target(&self, path: &Path) -> Result<PathBuf, Error>
fn get_parent_ids(&self) -> Result<Vec<RevisionId>, Error>
fn is_ignored(&self, path: &Path) -> Option<String>
fn kind(&self, path: &Path) -> Result<Kind, Error>
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 Freeze for WorkingTree
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)