class documentation

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_objects Add a set of objects to this object store.
Method close Close any files opened by this object store.
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 get_raw Obtain the raw fulltext for an object.
Method pack_loose_objects Pack loose objects.
Method repack Repack the packs in this repository.
Instance Variable pack_compression_level Undocumented
Property alternates Undocumented
Property packs List with pack objects.
Method _add_cached_pack Add a newly appeared pack to the cache by path.
Method _clear_cached_packs Undocumented
Method _get_loose_object Undocumented
Method _iter_alternate_objects Iterate over the SHAs of all the objects in alternate stores.
Method _iter_cached_packs Undocumented
Method _iter_loose_objects Iterate over the SHAs of all loose objects.
Method _remove_loose_object Undocumented
Method _remove_pack Undocumented
Method _update_pack_cache Undocumented
Instance Variable _pack_cache Undocumented

Inherited from BaseObjectStore:

Method __getitem__ Obtain an object by SHA1.
Method add_object Add a single object to this object store.
Method add_pack Add a new pack to this object store.
Method add_pack_data Add pack data to this object store.
Method determine_wants_all Undocumented
Method find_common_revisions Find which revisions this store has in common using graphwalker.
Method find_missing_objects Find the missing objects required for a set of revisions.
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 iter_shas Iterate over the objects for the specified shas.
Method iter_tree_contents Iterate the contents of a tree and all subtrees.
Method peel_sha Peel all tags from a SHA.
Method tree_changes Find the differences between the contents of two trees
Method _collect_ancestors Collect all ancestors of heads up to (excluding) those in common.
Method _get_depth Return the current available depth for the given head. For commits with multiple parents, the largest possible depth will be returned.
def __contains__(self, sha):

Check if a particular object is present by SHA1.

This method makes no distinction between loose and packed objects.

def __init__(self, pack_compression_level=-1):
def __iter__(self):

Iterate over the SHAs that are present in this store.

def add_objects(self, objects, progress=None):

Add a set of objects to this object store.

Returns: Pack object of the objects written.

Parameters
objectsIterable over (object, path) tuples, should support __len__.
progressUndocumented
def close(self):

Close any files opened by this object store.

def contains_loose(self, sha):

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

This does not check alternates.

def contains_packed(self, sha):

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

This does not check alternates.

def get_raw(self, name):

Obtain the raw fulltext for an object.

Returns: tuple with numeric type and object contents.

Parameters
namesha for the object.
def pack_loose_objects(self):

Pack loose objects.

Returns: Number 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.

pack_compression_level =

Undocumented

@property
alternates =

Undocumented

@property
packs =

List with pack objects.

def _add_cached_pack(self, base_name, pack):

Add a newly appeared pack to the cache by path.

def _clear_cached_packs(self):

Undocumented

def _iter_alternate_objects(self):

Iterate over the SHAs of all the objects in alternate stores.

def _iter_cached_packs(self):

Undocumented

def _iter_loose_objects(self):
def _remove_loose_object(self, sha):
def _remove_pack(self, name):
_pack_cache: dict =

Undocumented