class documentation
class PackCapableObjectStore(BaseObjectStore, PackedObjectContainer):
Known subclasses: dulwich.object_store.MemoryObjectStore, dulwich.object_store.PackBasedObjectStore
Constructor: PackCapableObjectStore(object_format)
Object store that supports pack operations.
This is a base class for object stores that can handle pack files, including both disk-based and memory-based stores.
| Method | add |
Add a new pack to this object store. |
| Method | add |
Add pack data to this object store. |
| Method | get |
Get a raw unresolved object. |
| Method | iterobjects |
Iterate over a subset of objects. |
Inherited from BaseObjectStore:
| Method | __contains__ |
Check if a particular object is present by SHA1. |
| Method | __getitem__ |
Obtain an object by SHA1. |
| Method | __init__ |
Initialize object store. |
| Method | __iter__ |
Iterate over the SHAs that are present in this store. |
| Method | add |
Add a single object to this object store. |
| Method | add |
Add a set of objects to this object store. |
| Method | close |
Close any files opened by this object store. |
| Method | contains |
Check if a particular object is present by SHA1 and is loose. |
| Method | contains |
Check if a particular object is present by SHA1 and is packed. |
| Method | determine |
Determine which objects are wanted based on refs. |
| Method | find |
Find which revisions this store has in common using graphwalker. |
| Method | find |
Find the missing objects required for a set of revisions. |
| Method | generate |
Generate pack data objects for a set of wants/haves. |
| Method | get |
Get the commit graph for this object store. |
| Method | get |
Get the modification time of an object. |
| Method | get |
Obtain the raw text for an object. |
| Method | get |
Get a reachability provider for this object store. |
| Method | iter |
Iterate over all SHA1s that start with a given prefix. |
| Method | iter |
Iterate the contents of a tree and all subtrees. |
| Method | iter |
Iterate over unpacked objects for a subset of SHAs. |
| Method | peel |
Peel all tags from a SHA. |
| Method | prune |
Prune/clean up this object store. |
| Method | tree |
Find the differences between the contents of two trees. |
| Method | write |
Write a commit graph file for this object store. |
| Instance Variable | object |
Undocumented |
| Property | packs |
Iterable of pack objects. |
| Method | _get |
Return the current available depth for the given head. |
def add_pack_data(self, count:
int, unpacked_objects: Iterator[ UnpackedObject], progress: Callable[ ..., None] | None = None) -> Pack | None:
¶
def get_unpacked_object(self, sha1:
ObjectID | RawObjectID, *, include_comp: bool = False) -> UnpackedObject:
¶
overridden in
dulwich.object_store.PackBasedObjectStoreGet a raw unresolved object.
| Parameters | |
sha1:ObjectID | RawObjectID | SHA-1 hash of the object |
includebool | Whether to include compressed data |
| Returns | |
UnpackedObject | UnpackedObject instance |