mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
4c15790b84
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
47 lines
2.1 KiB
TOML
47 lines
2.1 KiB
TOML
[package]
|
|
name = "newfilenodes"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["schemas/**/*.sql", "src/**/*.rs"]
|
|
|
|
[dependencies]
|
|
caching_ext = { path = "../common/rust/caching_ext" }
|
|
context = { path = "../server/context" }
|
|
filenodes = { path = "../filenodes" }
|
|
mercurial_types = { path = "../mercurial/types" }
|
|
metaconfig_types = { path = "../metaconfig/types" }
|
|
mononoke_types = { path = "../mononoke_types" }
|
|
sql_construct = { path = "../common/sql_construct" }
|
|
sql_ext = { path = "../common/rust/sql_ext" }
|
|
tunables = { path = "../tunables" }
|
|
cachelib = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
fbthrift = { git = "https://github.com/facebook/fbthrift.git", branch = "master" }
|
|
futures_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
futures_stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
memcache = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
sql = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
stats = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
time_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
abomonation = "0.7"
|
|
abomonation_derive = "0.5"
|
|
anyhow = "1.0"
|
|
bytes = { version = "0.5", features = ["serde"] }
|
|
faster-hex = "0.4"
|
|
futures = { version = "0.3", features = ["async-await", "compat"] }
|
|
futures-old = { package = "futures", version = "0.1" }
|
|
itertools = "0.8"
|
|
maplit = "1.0"
|
|
rand = { version = "0.7", features = ["small_rng"] }
|
|
scopeguard = "1.0.0"
|
|
thiserror = "1.0"
|
|
tokio = { version = "=0.2.13", features = ["full"] }
|
|
tokio-compat = "0.1"
|
|
|
|
[dev-dependencies]
|
|
mercurial_types-mocks = { path = "../mercurial/types/mocks" }
|
|
mononoke_types-mocks = { path = "../mononoke_types/mocks" }
|