Skip to main content

Module revset_util

Module revset_util 

Source
Expand description

Utility for parsing and evaluating user-provided revset expressions.

Structs§

BookmarkNameParseError
RevsetExpressionEvaluator
Wrapper around UserRevsetExpression to provide convenient methods.
TagNameParseError

Enums§

UserRevsetEvaluationError

Functions§

default_symbol_resolver
Wraps the given IdPrefixContext in SymbolResolver to be passed in to evaluate().
load_revset_aliases
parse_bookmark_name
Parses bookmark name specified in revset syntax.
parse_immutable_heads_expression
Parses user-configured expression defining the heads of the immutable set. Includes the root commit.
parse_remote_auto_track_bookmarks_map
Parses the given remotes.<name>.auto-track-bookmarks settings into a map of string matchers.
parse_remote_auto_track_bookmarks_map_for_new_bookmarks
Parses the given remotes.<name>.auto-track-bookmarks and remotes.<name>.auto-track-created-bookmarks settings into a map of string matchers. If both settings exist for the same remote, the union of the settings will be matched.
parse_tag_name
Parses tag name specified in revset syntax.
parse_union_name_patterns
Parses bookmark/tag/remote name patterns and unions them all.