Object store that keeps all objects in memory.
Method __init__ Undocumented
Method contains_loose Check if a particular object is present by SHA1 and is loose.
Method contains_packed Check if a particular object is present by SHA1 and is packed.
Method __iter__ Iterate over the SHAs that are present in this store.
Method packs List with pack objects.
Method get_raw Obtain the raw text for an object.
Method __getitem__ Obtain an object by SHA1.
Method __delitem__ Delete an object from this store, for testing only.
Method add_object Add a single object to this object store.
Method add_objects Add a set of objects to this object store.
Method add_pack Add a new pack to this object store.
Method add_thin_pack Add a new thin pack to this object store.
Method _to_hexsha Undocumented
Method _complete_thin_pack Complete a thin pack by adding external references.

Inherited from BaseObjectStore:

Method determine_wants_all Undocumented
Method iter_shas Iterate over the objects for the specified shas.
Method __contains__ Check if a particular object is present by SHA1.
Method add_pack_data Add pack data to this object store.
Method tree_changes Find the differences between the contents of two trees
Method iter_tree_contents Iterate the contents of a tree and all subtrees.
Method find_missing_objects Find the missing objects required for a set of revisions.
Method find_common_revisions Find which revisions this store has in common using graphwalker.
Method generate_pack_contents Iterate over the contents of a pack file.
Method generate_pack_data Generate pack data objects for a set of wants/haves.
Method peel_sha Peel all tags from a SHA.
Method close Close any files opened by this object store.
Method _collect_ancestors Collect all ancestors of heads up to (excluding) those in common.
def __init__(self):
Undocumented
def _to_hexsha(self, sha):
Undocumented
def contains_loose(self, sha):
Check if a particular object is present by SHA1 and is loose.
def contains_packed(self, sha):
Check if a particular object is present by SHA1 and is packed.
def __iter__(self):
Iterate over the SHAs that are present in this store.
@property
def packs(self):
List with pack objects.
def get_raw(self, name):
Obtain the raw text for an object.
Parametersnamesha for the object.
Returnstuple with numeric type and object contents.
def __getitem__(self, name):
Obtain an object by SHA1.
def __delitem__(self, name):
Delete an object from this store, for testing only.
def add_object(self, obj):
Add a single object to this object store.
def add_objects(self, objects, progress=None):
Add a set of objects to this object store.
ParametersobjectsIterable over a list of (object, path) tuples
def add_pack(self):

Add a new pack to this object store.

Because this object store doesn't support packs, we extract and add the individual objects.

ReturnsFileobject to write to and a commit function to call when the pack is finished.
def _complete_thin_pack(self, f, indexer):
Complete a thin pack by adding external references.
ParametersfOpen file object for the pack.
indexerA PackIndexer for indexing the pack.
def add_thin_pack(self, read_all, read_some):

Add a new thin pack to this object store.

Thin packs are packs that contain deltas with parents that exist outside the pack. Because this object store doesn't support packs, we extract and add the individual objects.

Parametersread_allRead function that blocks until the number of requested bytes are read.
read_someRead function that returns at least one byte, but may not return the number of bytes requested.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.