Part of bzrlib.repofmt.pack_repo View In Hierarchy
Known subclasses: bzrlib.repofmt.pack_repo.ExistingPack, bzrlib.repofmt.pack_repo.NewPack
This is a base class that is not directly used, instead the classes ExistingPack and NewPack are used.
Method | __init__ | Create a pack instance. |
Method | access_tuple | Return a tuple (transport, name) for the pack content. |
Method | file_name | Get the file name for the pack on disk. |
Method | get_revision_count | Undocumented |
Method | index_name | Get the disk name of an index type for pack name 'name'. |
Method | index_offset | Get the position in a index_size array for a given index type. |
Method | inventory_index_name | The inv index is the name + .iix. |
Method | revision_index_name | The revision index is the name + .rix. |
Method | signature_index_name | The signature index is the name + .six. |
Method | text_index_name | The text index is the name + .tix. |
Method | _check_references | Make sure our external references are present. |
Method | _replace_index_with_readonly | Undocumented |
Parameters | revision_index | A GraphIndex for determining what revisions are present in the Pack and accessing the locations of their texts. |
inventory_index | A GraphIndex for determining what inventories are present in the Pack and accessing the locations of their texts/deltas. | |
text_index | A GraphIndex for determining what file texts are present in the pack and accessing the locations of their texts/deltas (via (fileid, revisionid) tuples). | |
signature_index | A GraphIndex for determining what signatures are present in the Pack and accessing the locations of their texts. | |
chk_index | A GraphIndex for accessing content by CHK, if the pack has one. |
Packs are allowed to have deltas whose base is not in the pack, but it must be present somewhere in this collection. It is not allowed to have deltas based on a fallback repository. (See <https://bugs.launchpad.net/bzr/+bug/288751>)