class documentation
class PackIndex1(FilePackIndex):
Version 1 Pack Index file.
Method | __init__ |
Create a pack index object. |
Instance Variable | version |
Undocumented |
Method | _unpack |
Unpack the crc32 checksum for the ith object from the index file. |
Method | _unpack |
Unpack the i-th entry in the index file. |
Method | _unpack |
Unpack the i-th name from the index file. |
Method | _unpack |
Unpack the i-th object offset from the index file. |
Instance Variable | _fan |
Undocumented |
Inherited from FilePackIndex
:
Method | __eq__ |
Undocumented |
Method | __len__ |
Return the number of entries in this pack index. |
Method | calculate |
Calculate the SHA1 checksum over this pack index. |
Method | check |
Check that the stored checksum matches the actual checksum. |
Method | close |
Undocumented |
Method | get |
Return the SHA1 checksum stored for the corresponding packfile. |
Method | get |
Return the SHA1 checksum stored for this index. |
Method | iterentries |
Iterate over the entries in this pack index. |
Method | object |
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 |
See object_index. |
Method | _read |
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 |
Return the SHA1 corresponding to the index in the pack file. |
Method | objects |
Return the hex SHA1 over all the shas of all objects in this pack. |
overrides
dulwich.pack.FilePackIndex.__init__
Create a pack index object.
Provide it with the name of the index file to consider, and it will map it whenever required.
overrides
dulwich.pack.FilePackIndex._unpack_entry
Unpack the i-th entry in the index file.
- Returns: Tuple with object name (SHA), offset in pack file and CRC32
- checksum (if known).