class PackBasedObjectStore(BaseObjectStore):
Known subclasses: dulwich.contrib.swift.SwiftObjectStore
, dulwich.object_store.BucketBasedObjectStore
, dulwich.object_store.DiskObjectStore
Undocumented
Method | __contains__ |
Check if a particular object is present by SHA1. |
Method | __init__ |
Undocumented |
Method | __iter__ |
Iterate over the SHAs that are present in this 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 | get |
Obtain the raw fulltext for an object. |
Method | pack |
Pack loose objects. |
Method | repack |
Repack the packs in this repository. |
Instance Variable | pack |
Undocumented |
Property | alternates |
Undocumented |
Property | packs |
List with pack objects. |
Method | _add |
Add a newly appeared pack to the cache by path. |
Method | _clear |
Undocumented |
Method | _get |
Undocumented |
Method | _iter |
Iterate over the SHAs of all the objects in alternate stores. |
Method | _iter |
Undocumented |
Method | _iter |
Iterate over the SHAs of all loose objects. |
Method | _remove |
Undocumented |
Method | _remove |
Undocumented |
Method | _update |
Undocumented |
Instance Variable | _pack |
Undocumented |
Inherited from BaseObjectStore
:
Method | __getitem__ |
Obtain an object by SHA1. |
Method | add |
Add a single object to this object store. |
Method | add |
Add a new pack to this object store. |
Method | add |
Add pack data to this object store. |
Method | determine |
Undocumented |
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 |
Iterate over the contents of a pack file. |
Method | generate |
Generate pack data objects for a set of wants/haves. |
Method | iter |
Iterate over the objects for the specified shas. |
Method | iter |
Iterate the contents of a tree and all subtrees. |
Method | peel |
Peel all tags from a SHA. |
Method | tree |
Find the differences between the contents of two trees |
Method | _collect |
Collect all ancestors of heads up to (excluding) those in common. |
Method | _get |
Return the current available depth for the given head. For commits with multiple parents, the largest possible depth will be returned. |
Check if a particular object is present by SHA1.
This method makes no distinction between loose and packed objects.
dulwich.cloud.gcs.GcsObjectStore
, dulwich.contrib.swift.SwiftObjectStore
, dulwich.object_store.DiskObjectStore
Undocumented
Add a set of objects to this object store.
Returns: Pack object of the objects written.
Parameters | |
objects | Iterable over (object, path) tuples, should support __len__. |
progress | Undocumented |
Obtain the raw fulltext for an object.
Returns: tuple with numeric type and object contents.
Parameters | |
name | sha for the object. |
Repack the packs in this repository.
Note that this implementation is fairly naive and currently keeps all objects in memory while it repacks.
dulwich.contrib.swift.SwiftObjectStore
, dulwich.object_store.BucketBasedObjectStore
, dulwich.object_store.DiskObjectStore
Undocumented
dulwich.contrib.swift.SwiftObjectStore
, dulwich.object_store.BucketBasedObjectStore
, dulwich.object_store.DiskObjectStore
Iterate over the SHAs of all loose objects.
dulwich.contrib.swift.SwiftObjectStore
, dulwich.object_store.BucketBasedObjectStore
, dulwich.object_store.DiskObjectStore
Undocumented