Module revset

Source

Structs§

LoweringContext
Information needed to transform revset AST into UserRevsetExpression.
RevsetCommitIterator
RevsetExtensions
A set of extensions for revset evaluation.
RevsetParseContext
Information needed to parse revset expression.
RevsetParseError
RevsetWorkspaceContext
Workspace information needed to parse revset expression.
SymbolResolver
Resolves bookmarks, remote bookmarks, tags, git refs, and full and abbreviated commit and change ids.

Enums§

BinaryOp
ExpressionKind
ResolvedExpression
Describes evaluation plan of revset expression.
ResolvedPredicateExpression
RevsetCommitRef
Symbol or function to be resolved to CommitIds.
RevsetEvaluationError
Error occurred during revset evaluation.
RevsetExpression
Tree of revset expressions describing DAG operations.
RevsetFilterPredicate
RevsetModifier
Global flag applied to the entire expression.
RevsetParseErrorKind
RevsetResolutionError
Error occurred during symbol resolution.
UnaryOp

Constants§

GENERATION_RANGE_EMPTY
GENERATION_RANGE_FULL

Traits§

PartialSymbolResolver
A symbol resolver for a specific namespace of labels.
Revset
RevsetFilterExtension
A custom revset filter expression, defined by an extension.
RevsetIteratorExt
SymbolResolverExtension
An extension of the SymbolResolver.

Functions§

expect_date_pattern
expect_fileset_expression
Parses the given node as a fileset expression.
expect_literal
expect_string_pattern
format_remote_symbol
Formats a name@remote symbol, applies quoting and escaping if necessary.
format_string
Formats a string by quoting and escaping it.
format_symbol
Formats a string as symbol by quoting and escaping it if necessary.
lower_expression
Transforms the given AST node into expression that describes DAG operation. Function calls will be resolved at this stage.
optimize
Rewrites the given expression tree to reduce evaluation cost. Returns new tree.
parse
parse_program
Parses text into expression tree. No name resolution is made at this stage.
parse_symbol
Parses the text as a revset symbol, rejects empty string.
parse_with_modifier
walk_revs

Type Aliases§

ExpressionNode
FunctionCallNode
ResolvedRevsetExpression
RevsetExpression that never contains unresolved commit refs.
RevsetAliasesMap
RevsetContainingFn
Function that checks if a commit is contained within the revset.
RevsetDiagnostics
Manages diagnostic messages emitted during revset parsing and function-call resolution.
RevsetFunction
UserRevsetExpression
RevsetExpression that may contain unresolved commit refs.