sapling/eden/mononoke/filenodes
Stanislau Hlebik 4c15790b84 mononoke: return FilenodeResult from get_all_filenodes_maybe_stale
Summary:
Let's return FilenodeResult from get_all_filenodes_maybe_stale and change
callers to deal with that.

The change is straightforward with the exception of `file_history.rs`.
get_all_filenodes_maybe_stale() is used here to prefetch a lot filenodes in one
go. This diff changes it to return an empty vec in case filenodes are disabled.
Unfortunately this is not a great solution - since prefetched files are empty
get_file_history_using_prefetched() falls back to fetching filenodes
sequentially from the blobstore. that might be too slow, and the next diffs in
the stack will address this problem.

Reviewed By: krallin

Differential Revision: D21881082

fbshipit-source-id: a86dfd48a92182381ab56994f6b0f4b14651ea14
2020-06-10 19:29:16 -07:00
..
if third-party/rust: Turn off async-trait/support_old_nightly 2020-04-02 17:01:24 -07:00
src mononoke: return FilenodeResult from get_all_filenodes_maybe_stale 2020-06-10 19:29:16 -07:00
Cargo.toml mononoke: make filenode and mercurial_types OSS buildable 2020-03-27 11:40:13 -07:00