class documentation
class ObjectStoreGraphWalker:
Constructor: ObjectStoreGraphWalker(local_heads, get_parents, shallow, update_shallow)
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 |
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 |
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 | |
localIterable[ | Heads to start search with |
getCallable[ | Function for finding the parents of a SHA1. |
shallow:set[ | Set of shallow commits. |
updateCallable[ | Function to update shallow commits. |