jj/lib/tests
Martin von Zweigbergk 27a7fccefa revset: add a method returning a change id index
One of the remaining places we depend on index positions is when
creating a `ChangeIdIndex`. This moves that into the revset engine
(which is coupled to the commit index implementation) by adding a
`Revset::change_id_index()` method. We will also use this function
later when add support for resolving change id prefixes within a small
revset.

The current implementation simply creates an in-memory index using the
existing `IdIndex` we have in `repo.rs`.

The custom implementation at Google might do the same for small
revsets that are available on the client, but for revsets involving
many commits on the server, it might use a suboptimmal implementation
that uses longer-than-necessary prefixes for performance reasons. That
can be done by querying a server-side index including changes not in
the revset, and then verifying that the resulting commits are actually
in the revset.
2023-03-23 20:49:15 -07:00
..
test_bad_locking.rs repo: replace load_at_head() by helper in tests 2023-02-27 09:44:28 -08:00
test_commit_builder.rs commit_builder: add accessors for most fields 2023-03-19 00:48:05 -07:00
test_commit_concurrent.rs repo: replace load_at_head() by helper in tests 2023-02-27 09:44:28 -08:00
test_conflicts.rs conflicts: fix off-by-one error in materialize_merge_result() 2023-02-24 19:58:10 +09:00
test_default_revset_graph_iterator.rs revset: move revset_for_commits() to test 2023-03-23 04:50:33 -07:00
test_diff_summary.rs matchers: simplify FilesMatcher::new() to take slice of paths 2022-12-30 14:15:27 +09:00
test_git.rs index: load store based on type recorded in .jj/repo/index/type 2023-03-11 22:22:46 -08:00
test_index.rs tests: call num_commits() on specific implementation 2023-03-12 22:08:31 -07:00
test_init.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_load_repo.rs repo: propagate error when failing to look up backend type 2023-02-27 09:44:28 -08:00
test_merge_trees.rs backend: rename ConflictPart to ConflictTerm 2023-02-17 23:28:50 -08:00
test_mut_repo.rs tests: avoid some unnecessary calls to index().stats() 2023-03-12 22:08:31 -07:00
test_operations.rs repo: implement Repo on ReadonlyRepo instead of its Arc 2023-03-21 21:43:44 -07:00
test_refs.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_revset.rs revset: add a method returning a change id index 2023-03-23 20:49:15 -07:00
test_rewrite.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_view.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_working_copy.rs backend: rename ConflictPart to ConflictTerm 2023-02-17 23:28:50 -08:00
test_working_copy_concurrent.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_working_copy_sparse.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00
test_workspace.rs repo: extract a Repo trait for Arc<ReadonlyRepo> and MutableRepo 2023-02-15 19:15:17 -08:00