pub struct WorkingTree(pub Py<PyAny>);

Tuple Fields§

§0: Py<PyAny>

Implementations§

source§

impl WorkingTree

source

pub fn new(obj: Py<PyAny>) -> Result<WorkingTree, PyErr>

source

pub fn branch(&self) -> Box<dyn Branch, Global>

source

pub fn controldir(&self) -> ControlDir

source

pub fn open(path: &Path) -> Result<WorkingTree, WorkingTreeOpenError>

source

pub fn open_containing( path: &Path ) -> Result<(WorkingTree, PathBuf), WorkingTreeOpenError>

source

pub fn basis_tree(&self) -> Box<dyn Tree, Global>

source

pub fn get_tag_dict( &self ) -> Result<HashMap<String, RevisionId, RandomState>, PyErr>

source

pub fn abspath(&self, path: &Path) -> Result<PathBuf, PyErr>

source

pub fn supports_setting_file_ids(&self) -> bool

source

pub fn add(&self, paths: &[&Path]) -> Result<(), PyErr>

source

pub fn smart_add(&self, paths: &[&Path]) -> Result<(), PyErr>

source

pub fn commit( &self, message: &str, allow_pointless: Option<bool>, committer: Option<&str>, specific_files: Option<&[&Path]> ) -> Result<RevisionId, CommitError>

source

pub fn last_revision(&self) -> Result<RevisionId, PyErr>

Trait Implementations§

source§

impl MutableTree for WorkingTree

source§

impl ToPyObject for WorkingTree

source§

fn to_object(&self, py: Python<'_>) -> Py<PyAny>

Converts self into a Python object.
source§

impl Tree for WorkingTree

source§

fn get_tag_dict( &self ) -> Result<HashMap<String, RevisionId, RandomState>, PyErr>

source§

fn get_file(&self, path: &Path) -> Result<Box<dyn Read, Global>, Error>

source§

fn get_file_text(&self, path: &Path) -> Result<Vec<u8, Global>, Error>

source§

fn get_file_lines( &self, path: &Path ) -> Result<Vec<Vec<u8, Global>, Global>, Error>

source§

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

source§

fn has_filename(&self, path: &Path) -> bool

source§

fn get_parent_ids(&self) -> Result<Vec<RevisionId, Global>, PyErr>

source§

fn is_ignored(&self, path: &Path) -> Option<String>

source§

fn is_versioned(&self, path: &Path) -> bool

source§

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>

source§

fn has_versioned_directories(&self) -> bool

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> Ungil for Twhere T: Send,