MutableInventoryTree

Trait MutableInventoryTree 

Source
pub trait MutableInventoryTree: PyMutableTree {
    // Provided method
    fn add(&self, paths: &[&Path], file_ids: &[FileId]) -> Result<(), Error> { ... }
}
Expand description

Trait for trees that have an inventory and can be modified.

Inventory trees are trees that track file identifiers, which is a feature specific to Bazaar trees.

Provided Methods§

Source

fn add(&self, paths: &[&Path], file_ids: &[FileId]) -> Result<(), Error>

Add files to the tree with explicit file identifiers.

§Parameters
  • paths - The paths of the files to add.
  • file_ids - The file identifiers to assign to the files.
§Returns

Ok(()) on success, or an error if the files could not be added.

Implementors§