class documentation

class OverlayObjectStore(BaseObjectStore):

View In Hierarchy

Object store that can overlay multiple object stores.

Method __init__ Undocumented
Method __iter__ Iterate over the SHAs that are present in this store.
Method add_object Add a single object to this object store.
Method add_objects Add a set of objects to 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 text for an object.
Instance Variable add_store Undocumented
Instance Variable bases Undocumented
Property packs Iterable of pack objects.

Inherited from BaseObjectStore:

Method __contains__ Check if a particular object is present by SHA1.
Method __getitem__ Obtain an object by SHA1.
Method add_pack Add a new pack to this object store.
Method add_pack_data Add pack data to this object store.
Method close Close any files opened by 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 __init__(self, bases, add_store=None):

Undocumented

def __iter__(self):

Iterate over the SHAs that are present in this store.

def add_object(self, object):

Add a single object to this object store.

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

Add a set of objects to this object store.

Parameters
objectsIterable over a list of (object, path) tuples
progressUndocumented
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 get_raw(self, sha_id):

Obtain the raw text for an object.

Returns: tuple with numeric type and object contents.

Parameters
sha_idUndocumented
namesha for the object.
add_store =

Undocumented

bases =

Undocumented

@property
packs =

Iterable of pack objects.