forked from mirrors/jj
81f1ae38b3
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. |
||
---|---|---|
.. | ||
design | ||
technical | ||
branches.md | ||
code-of-conduct.md | ||
config.md | ||
config.toml | ||
conflicts.md | ||
contributing.md | ||
FAQ.md | ||
git-comparison.md | ||
git-compatibility.md | ||
github.md | ||
glossary.md | ||
operation-log.md | ||
related-work.md | ||
revsets.md | ||
sapling-comparison.md | ||
templates.md | ||
tutorial.md | ||
working-copy.md |