class documentation

class PackIndex2(FilePackIndex):

View In Hierarchy

Version 2 Pack Index file.

Method __init__ Create a pack index object.
Instance Variable version Undocumented
Method _unpack_crc32_checksum Unpack the crc32 checksum for the ith object from the index file.
Method _unpack_entry Unpack the i-th entry in the index file.
Method _unpack_name Unpack the i-th name from the index file.
Method _unpack_offset Unpack the i-th object offset from the index file.
Instance Variable _crc32_table_offset Undocumented
Instance Variable _fan_out_table Undocumented
Instance Variable _name_table_offset Undocumented
Instance Variable _pack_offset_largetable_offset Undocumented
Instance Variable _pack_offset_table_offset Undocumented

Inherited from FilePackIndex:

Method __eq__ Undocumented
Method __len__ Return the number of entries in this pack index.
Method calculate_checksum Calculate the SHA1 checksum over this pack index.
Method check Check that the stored checksum matches the actual checksum.
Method close Undocumented
Method get_pack_checksum Return the SHA1 checksum stored for the corresponding packfile.
Method get_stored_checksum Return the SHA1 checksum stored for this index.
Method iterentries Iterate over the entries in this pack index.
Method object_index Return the index in to the corresponding packfile for the object.
Property path Undocumented
Method _itersha Yield all the SHA1's of the objects in the index, sorted.
Method _object_index See object_index.
Method _read_fan_out_table Undocumented
Instance Variable _contents Undocumented
Instance Variable _file Undocumented
Instance Variable _filename Undocumented
Instance Variable _size Undocumented

Inherited from PackIndex (via FilePackIndex):

Method __iter__ Iterate over the SHAs in this pack.
Method __ne__ Undocumented
Method object_sha1 Return the SHA1 corresponding to the index in the pack file.
Method objects_sha1 Return the hex SHA1 over all the shas of all objects in this pack.
def __init__(self, filename, file=None, contents=None, size=None):

Create a pack index object.

Provide it with the name of the index file to consider, and it will map it whenever required.

version =

Undocumented

def _unpack_crc32_checksum(self, i):

Unpack the crc32 checksum for the ith object from the index file.

def _unpack_entry(self, i):

Unpack the i-th entry in the index file.

Returns: Tuple with object name (SHA), offset in pack file and CRC32
checksum (if known).
def _unpack_name(self, i):

Unpack the i-th name from the index file.

def _unpack_offset(self, i):

Unpack the i-th object offset from the index file.

_crc32_table_offset =

Undocumented

_fan_out_table =
_name_table_offset =

Undocumented

_pack_offset_largetable_offset =

Undocumented

_pack_offset_table_offset =

Undocumented