The prefetch command has an option to repack the prefetched files.
Eventually, we plan to merge prefetch and prefetchtrees into a single
command and therefore, this commit takes a step towards making the interface to
these commands exactly the same.
Details
- Reviewers
durham - Group Reviewers
Restricted Project - Commits
- rFBHGX1ebd6b179b2c: prefetchtrees: add option to repack prefetched trees
Ran all the tests.
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
This is only an intermediate step to help out with the review. It might be useful to checkout D1417 first to get an idea of what this leads to.
tests/test-treemanifest-prefetch.t | ||
---|---|---|
378 | We need to verify that the repack succeeded. Maybe we could first prefetch commit 0, then prefetch 2+4 and verify that they were all repacked together after debugwaitonrepack exits? |
tests/test-treemanifest-prefetch.t | ||
---|---|---|
378 | I wasn't sure how to do that. That suggested strategy seems like a reasonable enough way of going about it. |
tests/test-treemanifest-prefetch.t | ||
---|---|---|
386 | Since all we're verifying is that there should be one pack, doing ls_l $CACHEDIR/master/packs/manifests/*.dataidx | wc -l might be more concise. |
tests/test-treemanifest-prefetch.t | ||
---|---|---|
386 | That's a great idea! |
We need to verify that the repack succeeded. Maybe we could first prefetch commit 0, then prefetch 2+4 and verify that they were all repacked together after debugwaitonrepack exits?