jj/lib
Yuya Nishihara 81f1ae38b3 revset: add literal:"string" pattern syntax
The syntax is slightly different from Mercurial. In Mercurial, a pattern must
be quoted like "<kind>:<needle>". In JJ, <kind> is a separate parsing node, and
it must not appear in a quoted string. This allows us to report unknown prefix
as an error.

There's another subtle behavior difference. In Mercurial, branch(unknown) is
an error, whereas our branches(literal:unknown) is resolved to an empty set.
I think erroring out doesn't make sense for JJ since branches() by default
performs substring matching, so its behavior is more like a filter.

The parser abuses DAG range syntax for now. It can be rewritten once we remove
the deprecated x:y range syntax.
2023-08-17 07:42:12 +09:00
..
benches
gen-protos
src revset: add literal:"string" pattern syntax 2023-08-17 07:42:12 +09:00
tests revset: add literal:"string" pattern syntax 2023-08-17 07:42:12 +09:00
testutils tests: move commit_transactions() helper to testutils 2023-08-10 06:27:16 +09:00
Cargo.toml