class documentation

Graph walker that finds what commits are missing from an object store.

Method __init__ Create a new instance.
Method ack Ack that a revision and its ancestors are present in the source.
Method nak Nothing in common was found.
Method next Iterate over ancestors of heads in the target.
Instance Variable get_parents Function to retrieve parents in the local repo.
Instance Variable heads Revisions without descendants in the local repo.
Instance Variable parents Undocumented
Instance Variable shallow Undocumented
Instance Variable update_shallow Undocumented
def __init__(self, local_heads: Iterable[ObjectID], get_parents: Callable[[ObjectID], list[ObjectID]], shallow: set[ObjectID] | None = None, update_shallow: Callable[[(set[ObjectID] | None), (set[ObjectID] | None)], None] | None = None):

Create a new instance.

Parameters
local_heads:Iterable[ObjectID]Heads to start search with
get_parents:Callable[[ObjectID], list[ObjectID]]Function for finding the parents of a SHA1.
shallow:set[ObjectID] | NoneSet of shallow commits.
update_shallow:Callable[[(set[ObjectID] | None), (set[ObjectID] | None)], None] | NoneFunction to update shallow commits.
def ack(self, sha: ObjectID):

Ack that a revision and its ancestors are present in the source.

def nak(self):

Nothing in common was found.

def next(self) -> ObjectID | None:

Iterate over ancestors of heads in the target.

get_parents: Callable[[ObjectID], list[ObjectID]] =

Function to retrieve parents in the local repo.

heads: set[ObjectID] =

Revisions without descendants in the local repo.

Undocumented

shallow: set[ObjectID] =

Undocumented

update_shallow =

Undocumented