This is an archive of the discontinued Mercurial Phabricator instance.

prefetch: add option to specify base revision
ClosedPublic

Authored by singhsrb on Nov 10 2017, 5:42 PM.
Tags
None
Subscribers

Details

Reviewers
durham
Group Reviewers
Restricted Project
Commits
rFBHGX7e8247381847: prefetch: add option to specify base revision
Summary

Adding the option to specify the base revision in the prefetch
command. This can useful to limit the prefetch data and also makes the
interface of prefetch consistent with prefetchtrees. Soon, we will merge
prefetch and prefetchtrees into a single command and both commands having a
similar interface is useful for the merging.

Test Plan

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

singhsrb created this revision.Nov 10 2017, 5:42 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 10 2017, 5:42 PM
durham accepted this revision.Nov 14 2017, 7:16 PM
durham added a subscriber: durham.
durham added inline comments.
tests/test-remotefilelog-prefetch.t
40

It might be better to clear the cache (clearcache) then run this command. That will guarantee that it only downloaded the 2 files from commit #1 because you told it to, and not because they were already in the cache. Then we would see downloads while cat'ing 0 x and 0 z.

This revision is now accepted and ready to land.Nov 14 2017, 7:16 PM
singhsrb added inline comments.Nov 15 2017, 1:59 PM
tests/test-remotefilelog-prefetch.t
40

Makes sense. I will do that!

singhsrb updated this revision to Diff 3532.Nov 15 2017, 1:59 PM
This revision was automatically updated to reflect the committed changes.