ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/cli
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
..
examples cargo: move examples/ into cli/ so they are part of the build again 2023-08-07 21:49:45 +00:00
src Fixed missing quote in "jj config set" help 2023-08-16 14:57:48 -04:00
testing cli: move src/ directory to new cli/ directory 2023-08-04 19:00:42 -05:00
tests revset: add literal:"string" pattern syntax 2023-08-17 07:42:12 +09:00
build.rs build: update rerun-if conditions to watch .git/HEAD in colocated repo 2023-08-06 12:16:11 +09:00
Cargo.toml cargo: unify a lot of crate metadata in the workspace 2023-08-06 16:44:33 -05:00