Module op_walk

Source
Expand description

Utility for operation id resolution and traversal.

Structs§

ReparentStats
Stats about reparent_range().

Enums§

OpsetEvaluationError
Error that may occur during evaluation of operation set expression.
OpsetResolutionError
Error that may occur during parsing and resolution of operation set expression.

Functions§

get_current_head_ops
Loads the current head operations. The returned operations may contain redundant ones which are ancestors of the other heads.
reparent_range
Reparents the operation range root_ops..head_ops onto the dest_op.
resolve_op_at
Resolves operation set expression at the given head operations.
resolve_op_for_load
Resolves operation set expression without loading a repo.
resolve_op_with_repo
Resolves operation set expression against the loaded repo.
walk_ancestors
Walks head_ops and their ancestors in reverse topological order.
walk_ancestors_range
Walks ancestors from head_ops in reverse topological order, excluding ancestors of root_ops.