jj/cli/tests
Yuya Nishihara 62f0cb8c3f cli: change default log revset to not include all tagged heads
The default immutable_heads() includes tags(), which makes sense, but computing
heads(tags()) can be expensive because the tags() set is usually sparse. For
example, "jj bench revset 'heads(tags())'" took 157ms in my linux stable
mirror. We can of course optimize the heads evaluation by using bit set or
segmented index, but the query includes many historical heads if the repository
has per-release branches, which are uninteresting anyway. So, this patch
replaces heads(immutable_heads()) with trunk().

The reason we include heads(immutable_heads()) is to mitigate the following
problem. Suppose trunk() is the branch to be based off, I think using trunk()
here is pretty good.

```
A   B
*---*----* trunk() ⊆ immutable_heads()
     \
      * C
```
https://github.com/martinvonz/jj/pull/2247#discussion_r1335078879
2024-02-23 00:25:58 +09:00
..
common compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
cli-reference@.md.snap cli: change default log revset to not include all tagged heads 2024-02-23 00:25:58 +09:00
runner.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_abandon_command.rs rewrite: default to not simplifying ancestor merges 2024-02-19 14:20:18 -08:00
test_alias.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_branch_command.rs cli: list new remote branches during git fetch 2024-02-18 17:36:01 +01:00
test_builtin_aliases.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_cat_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_checkout.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_chmod_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_commit_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_commit_template.rs templater: add a local() method on Timestamps (#2900) 2024-02-12 10:22:24 -08:00
test_concurrent_operations.rs op_store: add metadata flag for ops representing working-copy snapshot 2024-02-19 22:44:38 -08:00
test_config_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_debug_command.rs op_store: add metadata flag for ops representing working-copy snapshot 2024-02-19 22:44:38 -08:00
test_describe_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_diff_command.rs cli: rename --verbose to --debug to better fit what it does 2024-02-18 18:45:48 +01:00
test_diffedit_command.rs cli: rename --verbose to --debug to better fit what it does 2024-02-18 18:45:48 +01:00
test_duplicate_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_edit_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_generate_md_cli_help.rs docs, CLI reference: use include-markdown instead of a symlink 2024-02-12 10:28:09 -08:00
test_git_clone.rs cli: list new remote branches during git fetch 2024-02-18 17:36:01 +01:00
test_git_colocated.rs cli: list new remote branches during git fetch 2024-02-18 17:36:01 +01:00
test_git_fetch.rs cli: list new remote branches during git fetch 2024-02-18 17:36:01 +01:00
test_git_import_export.rs cli: list new remote branches during git fetch 2024-02-18 17:36:01 +01:00
test_git_init.rs cli: rename --colocated flag of "jj git init" to --colocate (verb) 2024-02-07 09:12:24 -08:00
test_git_push.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_git_remotes.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_git_submodule.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_gitignores.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_global_opts.rs cli: rename --verbose to --debug to better fit what it does 2024-02-18 18:45:48 +01:00
test_immutable_commits.rs cli: change default log revset to not include all tagged heads 2024-02-23 00:25:58 +09:00
test_init_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_interdiff_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_log_command.rs index: switch to persistent change id index 2024-02-18 09:44:57 +09:00
test_move_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_new_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_next_prev_commands.rs next/prev: make --edit implied when already on non-head commit 2024-02-12 10:42:26 -08:00
test_obslog_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_operations.rs op_store: add metadata flag for ops representing working-copy snapshot 2024-02-19 22:44:38 -08:00
test_rebase_command.rs cli: make jj rebase not simplify ancestor merges 2024-02-19 14:20:18 -08:00
test_repo_change_report.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_resolve_command.rs cli: rename --verbose to --debug to better fit what it does 2024-02-18 18:45:48 +01:00
test_restore_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_revset_output.rs revset: disable parsing rules of legacy dag range operator 2024-02-14 10:04:56 +09:00
test_root.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_shell_completion.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_show_command.rs cli: make jj show accept a template to render its output 2024-02-10 21:54:52 +05:00
test_sparse_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_split_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_squash_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_status_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_tag_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_templater.rs templater: retain "++" in parsed tree to provide better error indication 2024-02-09 07:42:54 +09:00
test_tree_level_conflicts.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_undo.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_unsquash_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_untrack_command.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_util_command.rs op_store: add metadata flag for ops representing working-copy snapshot 2024-02-19 22:44:38 -08:00
test_working_copy.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08:00
test_workspaces.rs op_store: add metadata flag for ops representing working-copy snapshot 2024-02-19 22:44:38 -08:00