mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-26 14:00:51 +00:00
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. |
||
---|---|---|
.. | ||
test_bad_locking.rs | ||
test_commit_builder.rs | ||
test_commit_concurrent.rs | ||
test_conflicts.rs | ||
test_default_revset_graph_iterator.rs | ||
test_diff_summary.rs | ||
test_git.rs | ||
test_id_prefix.rs | ||
test_index.rs | ||
test_init.rs | ||
test_load_repo.rs | ||
test_merge_trees.rs | ||
test_merged_tree.rs | ||
test_mut_repo.rs | ||
test_operations.rs | ||
test_refs.rs | ||
test_revset.rs | ||
test_rewrite.rs | ||
test_view.rs | ||
test_working_copy.rs | ||
test_working_copy_concurrent.rs | ||
test_working_copy_sparse.rs | ||
test_workspace.rs |