class documentation
Object for performing a walk of commits in a store.
Walker objects are initialized with a store and other options and can then be treated as iterators of Commit objects.
| Method | __init__ |
Constructor. |
| Method | __iter__ |
Iterate over walk entries. |
| Instance Variable | excluded |
Undocumented |
| Instance Variable | follow |
Undocumented |
| Instance Variable | get |
Undocumented |
| Instance Variable | include |
Undocumented |
| Instance Variable | max |
Undocumented |
| Instance Variable | order |
Undocumented |
| Instance Variable | paths |
Undocumented |
| Instance Variable | rename |
Undocumented |
| Instance Variable | reverse |
Undocumented |
| Instance Variable | since |
Undocumented |
| Instance Variable | store |
Undocumented |
| Instance Variable | until |
Undocumented |
| Method | _change |
Undocumented |
| Method | _next |
Undocumented |
| Method | _path |
Undocumented |
| Method | _reorder |
Possibly reorder a results iterator. |
| Method | _should |
Determine if a walk entry should be returned.. |
| Instance Variable | _num |
Undocumented |
| Instance Variable | _out |
Undocumented |
| Instance Variable | _queue |
Undocumented |
def __init__(self, store:
BaseObjectStore, include: ObjectID | Sequence[ ObjectID], exclude: Sequence[ ObjectID] | None = None, order: str = 'date', reverse: bool = False, max_entries: int | None = None, paths: Sequence[ bytes] | None = None, rename_detector: RenameDetector | None = None, follow: bool = False, since: int | None = None, until: int | None = None, get_parents: Callable[ [ Commit], list[ ObjectID]] = lambda commit: commit.parents, queue_cls: type = _CommitTimeQueue):
¶
Constructor.
| Parameters | |
store:BaseObjectStore | ObjectStore instance for looking up objects. |
include:ObjectID | Sequence[ | Iterable of SHAs of commits to include along with their ancestors. |
exclude:Sequence[ | Iterable of SHAs of commits to exclude along with their ancestors, overriding includes. |
order:str | ORDER_* constant specifying the order of results. Anything other than ORDER_DATE may result in O(n) memory usage. |
reverse:bool | If True, reverse the order of output, requiring O(n) memory. |
maxint | None | The maximum number of entries to yield, or None for no limit. |
paths:Sequence[ | Iterable of file or subtree paths to show entries for. |
renameRenameDetector | None | diff.RenameDetector object for detecting renames. |
follow:bool | If True, follow path across renames/copies. Forces a default rename_detector. |
since:int | None | Timestamp to list commits after. |
until:int | None | Timestamp to list commits before. |
getCallable[ | Method to retrieve the parents of a commit |
queuetype | A class to use for a queue of commits, supporting the iterator protocol. The constructor takes a single argument, the Walker. |