Part of bzrlib.xml_serializer View In Hierarchy
Known subclasses: bzrlib.plugins.weave_fmt.xml4._Serializer_v4, bzrlib.xml8.Serializer_v8
Method | read_inventory_from_string | Read xml_string into an inventory object. |
Method | read_inventory | See read_inventory_from_string. |
Method | write_revision | Undocumented |
Method | write_revision_to_string | Undocumented |
Method | read_revision | Undocumented |
Method | read_revision_from_string | Undocumented |
Method | _write_element | Undocumented |
Method | _read_element | Undocumented |
Inherited from Serializer:
Method | write_inventory | Write inventory to a file. |
Method | write_inventory_to_string | Produce a simple string representation of an inventory. |
Parameters | xml_string | The xml to read. |
revision_id | If not-None, the expected revision id of the inventory. Some serialisers use this to set the results' root revision. This should be supplied for deserialising all from-repository inventories so that xml5 inventories that were serialised without a revision identifier can be given the right revision id (but not for working tree inventories where users can edit the data without triggering checksum errors or anything). | |
entry_cache | An optional cache of InventoryEntry objects. If supplied we will look up entries via (file_id, revision_id) which should map to a valid InventoryEntry (File/Directory/etc) object. | |
return_from_cache | Return entries directly from the cache, rather than copying them first. This is only safe if the caller promises not to mutate the returned inventory entries, but it can make some operations significantly faster. |