Part of bzrlib.inventory View In Hierarchy
Method | __init__ | Create an InventoryEntry |
Method | copy | Clone this inventory entry. |
Method | detect_changes | See InventoryEntry.detect_changes. |
Method | has_text | See InventoryEntry.has_text. |
Method | kind_character | See InventoryEntry.kind_character. |
Method | __repr__ | Undocumented |
Method | _check | See InventoryEntry._check |
Method | _diff | See InventoryEntry._diff. |
Method | _read_tree_state | See InventoryEntry._read_tree_state. |
Method | _forget_tree_state | Undocumented |
Method | _unchanged | See InventoryEntry._unchanged. |
Inherited from InventoryEntry:
Method | parent_candidates | Find possible per-file graph parents. |
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 | __eq__ | Undocumented |
Method | __ne__ | Undocumented |
Method | __hash__ | Undocumented |
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