jj/lib
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
..
gen-protos cargo: bump prost-build from 0.11.7 to 0.11.8 2023-02-28 16:13:14 +00:00
src revset: add a method returning a change id index 2023-03-23 20:49:15 -07:00
tests revset: add a method returning a change id index 2023-03-23 20:49:15 -07:00
testutils index: load store based on type recorded in .jj/repo/index/type 2023-03-11 22:22:46 -08:00
build.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
Cargo.toml cargo: bump insta from 1.28.0 to 1.29.0 2023-03-23 09:34:27 -07:00