Structs§
- Lowering
Context - Information needed to transform revset AST into
UserRevsetExpression
. - Revset
Commit Iterator - Revset
Extensions - A set of extensions for revset evaluation.
- Revset
Parse Context - Information needed to parse revset expression.
- Revset
Parse Error - Revset
Workspace Context - Workspace information needed to parse revset expression.
- Symbol
Resolver - Resolves bookmarks, remote bookmarks, tags, git refs, and full and abbreviated commit and change ids.
Enums§
- Binary
Op - Expression
Kind - Resolved
Expression - Describes evaluation plan of revset expression.
- Resolved
Predicate Expression - Revset
Commit Ref - Symbol or function to be resolved to
CommitId
s. - Revset
Evaluation Error - Error occurred during revset evaluation.
- Revset
Expression - Tree of revset expressions describing DAG operations.
- Revset
Filter Predicate - Revset
Modifier - Global flag applied to the entire expression.
- Revset
Parse Error Kind - Revset
Resolution Error - Error occurred during symbol resolution.
- UnaryOp
Constants§
Traits§
- Partial
Symbol Resolver - A symbol resolver for a specific namespace of labels.
- Revset
- Revset
Filter Extension - A custom revset filter expression, defined by an extension.
- Revset
Iterator Ext - Symbol
Resolver Extension - 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§
- Expression
Node - Function
Call Node - Resolved
Revset Expression RevsetExpression
that never contains unresolved commit refs.- Revset
Aliases Map - Revset
Containing Fn - Function that checks if a commit is contained within the revset.
- Revset
Diagnostics - Manages diagnostic messages emitted during revset parsing and function-call resolution.
- Revset
Function - User
Revset Expression RevsetExpression
that may contain unresolved commit refs.