class documentation

ObjectIterator that works on top of an ObjectStore.

Method __bool__ Indicate whether this object has contents.
Method __contains__ Check if an object is present.
Method __getitem__ Find an object by SHA1.
Method __init__ Create a new ObjectIterator.
Method __iter__ Yield tuple with next object and path.
Method __len__ Return the number of objects.
Method iterobjects Iterate over just the objects.
Method itershas Iterate over the SHAs.
Instance Variable sha_iter Undocumented
Instance Variable store Undocumented
Method _empty Undocumented
Instance Variable _shas Undocumented
def __bool__(self):

Indicate whether this object has contents.

def __contains__(self, needle):

Check if an object is present.

Note: This checks if the object is present in
the underlying object store, not if it would be yielded by the iterator.
Parameters
needleSHA1 of the object to check for
def __getitem__(self, key):

Find an object by SHA1.

Note: This retrieves the object from the underlying
object store. It will also succeed if the object would not be returned by the iterator.
def __init__(self, store, sha_iter):

Create a new ObjectIterator.

Parameters
storeObject store to retrieve from
sha_iterIterator over (sha, path) tuples
def __iter__(self):

Yield tuple with next object and path.

def __len__(self):

Return the number of objects.

def iterobjects(self):

Iterate over just the objects.

def itershas(self):

Iterate over the SHAs.

sha_iter =

Undocumented

store =

Undocumented

def _empty(self):

Undocumented

_shas: list =

Undocumented