module documentation
General implementation of walking commits and their contents.
| Class | |
Object encapsulating a single result from a walk. |
| Class | |
Object for performing a walk of commits in a store. |
| Constant | ALL |
Undocumented |
| Constant | ORDER |
Undocumented |
| Constant | ORDER |
Undocumented |
| Class | _ |
Priority queue of WalkEntry objects by commit time. |
| Function | _topo |
Reorder an iterable of entries topologically. |
| Constant | _MAX |
Undocumented |
def _topo_reorder(entries:
Iterator[ WalkEntry], get_parents: Callable[ [ Commit], list[ ObjectID]] = lambda commit: commit.parents) -> Iterator[ WalkEntry]:
¶
Reorder an iterable of entries topologically.
This works best assuming the entries are already in almost-topological order, e.g. in commit time order.
- Returns: iterator over WalkEntry objects from entries in FIFO order, except
- where a parent would be yielded before any of its children.
| Parameters | |
entries:Iterator[ | An iterable of WalkEntry objects. |
getCallable[ | Optional function for getting the parents of a commit. |
| Returns | |
Iterator[ | Undocumented |