Known subclasses: dulwich.contrib.swift.SwiftObjectStore, dulwich.object_store.DiskObjectStore

No class docstring
Method __init__ Undocumented
Method alternates Undocumented
Method contains_packed Check if a particular object is present by SHA1 and is packed.
Method __contains__ Check if a particular object is present by SHA1.
Method close Close any files opened by this object store.
Method packs List with pack objects.
Method pack_loose_objects Pack loose objects.
Method repack Repack the packs in this repository.
Method __iter__ Iterate over the SHAs that are present in this store.
Method contains_loose Check if a particular object is present by SHA1 and is loose.
Method get_raw Obtain the raw fulltext for an object.
Method add_objects Add a set of objects to this object store.
Method _pack_cache_stale Check whether the pack cache is stale.
Method _add_known_pack Add a newly appeared pack to the cache by path.
Method _flush_pack_cache Undocumented
Method _iter_alternate_objects Iterate over the SHAs of all the objects in alternate stores.
Method _iter_loose_objects Iterate over the SHAs of all loose objects.
Method _get_loose_object Undocumented
Method _remove_loose_object Undocumented
Method _remove_pack Undocumented

Inherited from BaseObjectStore:

Method determine_wants_all Undocumented
Method iter_shas Iterate over the objects for the specified shas.
Method __getitem__ Obtain an object by SHA1.
Method add_object Add a single object to this object store.
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 _collect_ancestors Collect all ancestors of heads up to (excluding) those in common.
@property
def alternates(self):
Undocumented
def contains_packed(self, sha):

Check if a particular object is present by SHA1 and is packed.

This does not check alternates.

def __contains__(self, sha):

Check if a particular object is present by SHA1.

This method makes no distinction between loose and packed objects.

def _pack_cache_stale(self):
Check whether the pack cache is stale.
def _add_known_pack(self, base_name, pack):
Add a newly appeared pack to the cache by path.
def _flush_pack_cache(self):
Undocumented
def close(self):
Close any files opened by this object store.
@property
def packs(self):
def _iter_alternate_objects(self):
Iterate over the SHAs of all the objects in alternate stores.
def _iter_loose_objects(self):
Iterate over the SHAs of all loose objects.
def _get_loose_object(self, sha):
def _remove_loose_object(self, sha):
Undocumented
def _remove_pack(self, name):
Undocumented
def pack_loose_objects(self):
Pack loose objects.
ReturnsNumber of objects packed
def repack(self):

Repack the packs in this repository.

Note that this implementation is fairly naive and currently keeps all objects in memory while it repacks.

def __iter__(self):
Iterate over the SHAs that are present in this store.
def contains_loose(self, sha):

Check if a particular object is present by SHA1 and is loose.

This does not check alternates.

def get_raw(self, name):
Obtain the raw fulltext for an object.
Parametersnamesha for the object.
Returnstuple with numeric type and object contents.
def add_objects(self, objects, progress=None):
Add a set of objects to this object store.
ParametersobjectsIterable over (object, path) tuples, should support __len__.
ReturnsPack object of the objects written.
API Documentation for Dulwich, generated by pydoctor at 2018-11-17 19:05:54.