diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-01-25 17:41:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-01-27 12:07:53 -0800 |
commit | f0ed59afcce8e71efe7b7b32b66e6e896455bb1d (patch) | |
tree | 7d6c903295fe3078600999a8df2d108a70ea92a6 /t/t9805-git-p4-skip-submit-edit.sh | |
parent | t5326: drop unnecessary setup (diff) | |
download | tgif-f0ed59afcce8e71efe7b7b32b66e6e896455bb1d.tar.xz |
t5326: extract `test_rev_exists`
To determine which source of data is used for the MIDX's reverse index
cache, introduce a helper which forces loading the reverse index, and
then looks for the special trace2 event introduced in a previous commit.
For now, this helper just looks for when the legacy MIDX .rev file was
loaded, but in a subsequent commit will become parameterized over the
the reverse index's source.
This function replaces checking for the existence of the .rev file. We
could write a similar helper to ensure that the .rev file is cleaned up
after repacking, but it will make subsequent tests more difficult to
write, and provides marginal value since we already check that the MIDX
.bitmap file is removed.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9805-git-p4-skip-submit-edit.sh')
0 files changed, 0 insertions, 0 deletions