b.i.TreeReference(InventoryEntry) : class documentation

Part of bzrlib.inventory View In Hierarchy

No class docstring
Method __init__ Create an InventoryEntry
Method copy Clone this inventory entry.
Method _read_tree_state Populate fields in the inventory entry from the given tree.
Method _forget_tree_state Undocumented
Method _unchanged See InventoryEntry._unchanged.

Inherited from InventoryEntry:

Method detect_changes Return a (text_modified, meta_modified) from this to old_entry.
Method parent_candidates Find possible per-file graph parents.
Method has_text Return true if the object this entry represents has textual data.
Method kind_character Return a short kind indicator useful for appending to names.
Method sorted_children Undocumented
Static Method versionable_kind Undocumented
Method check Check this inventory entry is intact.
Static Method describe_change Describe the change between old_entry and this.
Method __repr__ Undocumented
Method __eq__ Undocumented
Method __ne__ Undocumented
Method __hash__ Undocumented
Method _diff Perform a diff between two entries of the same kind.
Method _check Check this inventory entry for kind specific errors.
def __init__(self, file_id, name, parent_id, revision=None, reference_revision=None):

Create an InventoryEntry

The filename must be a single component, relative to the parent directory; it cannot be a whole path or relative name.

>>> e = InventoryFile('123', 'hello.c', ROOT_ID)
>>> e.name
'hello.c'
>>> e.file_id
'123'
>>> e = InventoryFile('123', 'src/hello.c', ROOT_ID)
Traceback (most recent call last):
InvalidEntryName: Invalid entry name: src/hello.c
def copy(self):
Clone this inventory entry.
def _read_tree_state(self, path, work_tree):
Populate fields in the inventory entry from the given tree.
def _forget_tree_state(self):
Undocumented
def _unchanged(self, previous_ie):
See InventoryEntry._unchanged.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.