ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
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
..
test_bad_locking.rs
test_commit_builder.rs
test_commit_concurrent.rs
test_conflicts.rs conflicts: remove redundant num_removes argument from parse_conflict() 2023-08-13 09:54:16 +00:00
test_default_revset_graph_iterator.rs
test_diff_summary.rs
test_git.rs git: propagate errors for missing commits when importing refs 2023-08-11 05:06:36 +00:00
test_id_prefix.rs
test_index.rs
test_init.rs
test_load_repo.rs
test_merge_trees.rs
test_merged_tree.rs merged_tree: add path_value() 2023-08-15 07:56:55 -07:00
test_mut_repo.rs
test_operations.rs
test_refs.rs
test_revset.rs revset: add literal:"string" pattern syntax 2023-08-17 07:42:12 +09:00
test_rewrite.rs
test_view.rs tests: move commit_transactions() helper to testutils 2023-08-10 06:27:16 +09:00
test_working_copy.rs
test_working_copy_concurrent.rs
test_working_copy_sparse.rs
test_workspace.rs