ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/docs
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
..
design
technical docs: correct stale info about which backends are dynamically chosen 2023-08-13 14:15:09 +00:00
branches.md
code-of-conduct.md
config.md docs: ui.difftool -> ui.diff-editor 2023-08-13 21:12:50 -04:00
config.toml configs: use Notepad as default editor on Windows 2023-08-10 17:09:07 +00:00
conflicts.md
contributing.md
FAQ.md
git-comparison.md Small addition to index comparison 2023-08-14 13:48:46 +09:00
git-compatibility.md
github.md revset: add function mine() 2023-08-16 11:00:14 -05:00
glossary.md
operation-log.md docs: fix typo in operation-log.md 2023-08-13 05:08:45 +00:00
related-work.md
revsets.md revset: add literal:"string" pattern syntax 2023-08-17 07:42:12 +09:00
sapling-comparison.md
templates.md templater: add root keyword 2023-08-15 18:54:59 +03:00
tutorial.md configs: use Notepad as default editor on Windows 2023-08-10 17:09:07 +00:00
working-copy.md