jj/lib/tests
Yuya Nishihara b0e8e2a1af index: move segment files to sub directory, add version number
I'm going to introduce breaking changes in index format. Some of them will
affect the file size, so version number or signature won't be needed. However,
I think it's safer to detect the format change as early as possible.

I have no idea if embedded version number is the best way. Because segment
files are looked up through the operation links, the version number could be
stored there and/or the "segments" directory could be versioned. If we want to
support multiple format versions and clients, it might be better to split the
tables into data chunks (e.g. graph entries, commit id table, change id table),
and add per-chunk version/type tag. I choose the per-file version just because
it's simple and would be non-controversial.

As I'm going to introduce format change pretty soon, this patch doesn't
implement data migration. The existing index files will be deleted and new
files will be created from scratch.

Planned index format changes include:
 1. remove unused "flags" field
 2. inline commit parents up to two
 3. add sorted change ids table
2024-02-12 19:38:36 +09:00
..
runner.rs compile integration tests as a single binary 2024-02-06 18:19:41 -08: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 git: extract Git HEAD handling bits from import_some_refs() 2024-01-27 00:01:59 +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_id_prefix.rs
test_index.rs index: move segment files to sub directory, add version number 2024-02-12 19:38:36 +09:00
test_init.rs
test_load_repo.rs
test_local_working_copy.rs test_local_working_copy: use std::fs:write instead of OpenOptions 2024-02-10 16:06:28 -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 op_store: add special case for root id resolution 2024-01-16 21:46:54 +09:00
test_refs.rs
test_revset.rs Update strsim (changes tests), clap, clap_complete 2024-02-10 00:01:47 -08:00
test_rewrite.rs clippy: new nightly fixes 2024-02-10 16:06:28 -08:00
test_signing.rs
test_view.rs view: drop tracking of public heads 2024-01-13 22:23:57 -08:00
test_workspace.rs workspace: combine working copy functions into a trait 2024-01-25 11:46:07 -08:00