ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Aleksey Kuznetsov cd3d75ebf6 revset: introduce more performant way to check if a commit is in a revset
Initially we were thinking to have `Revset` return something like
`CachedRevset`:

```
pub trait CachedRevset {
  fn iter(&self) -> Box<dyn Iterator<Item = Commit>>;
  fn contains(&self, &CommitId) -> bool;
}
```

But we weren't sure what use case for `iter` would be, so we dropped the `iter`
method. `CachedRevset` with single `contains` method needed a better name. We
weren't able to come up with one, so we decided instead to have a method on
`Revset` that returns a closure to check if a commit is in a revset.
2024-03-11 08:27:35 +05:00
..
runner.rs sign: Add SSH backend tests 2024-02-20 00:02:08 +00:00
test_bad_locking.rs
test_commit_builder.rs
test_commit_concurrent.rs op_store: add a virtual root operation, similar to root commit 2024-01-14 10:15:14 -08:00
test_conflicts.rs conflicts: test materialization with with negative snapshots 2024-01-23 07:18:54 -08:00
test_default_revset_graph_iterator.rs default_index: adopt revset engine and graph iterator modules 2024-01-07 05:37:47 -08:00
test_diff_summary.rs
test_git.rs tests: fix concurrent git read/write test to retry on ref lock contention 2024-02-17 15:09:27 +09:00
test_git_backend.rs git_backend: on gc(), remove unreachable no-gc refs and compact them 2024-01-27 10:18:11 +09:00
test_gpg.rs gpg_signing: handle early termination of gpg command in verify path 2024-03-03 18:35:10 +09:00
test_id_prefix.rs
test_index.rs tests: remove last use of walk_revs() from integration tests 2024-03-08 10:07:40 +09:00
test_init.rs
test_load_repo.rs
test_local_working_copy.rs working_copy: implement symlinks on windows with a helper function 2024-03-05 15:16:38 +08:00
test_local_working_copy_concurrent.rs
test_local_working_copy_sparse.rs
test_merge_trees.rs
test_merged_tree.rs clippy: new nightly fixes 2024-02-10 16:06:28 -08:00
test_mut_repo.rs view: drop tracking of public heads 2024-01-13 22:23:57 -08:00
test_operations.rs operation: add shorthand for .store_operation().metadata 2024-02-25 09:00:56 +09:00
test_refs.rs
test_revset.rs revset: introduce more performant way to check if a commit is in a revset 2024-03-11 08:27:35 +05:00
test_rewrite.rs rewrite: allow working-copy to be abandoned 2024-02-25 16:39:05 -08:00
test_signing.rs
test_ssh_signing.rs sign: Add SSH backend tests 2024-02-20 00:02:08 +00:00
test_view.rs view: drop tracking of public heads 2024-01-13 22:23:57 -08:00
test_workspace.rs working_copy: add Send supertrait 2024-02-17 15:13:25 +08:00