sapling/eden/mononoke/pushrebase/Cargo.toml
Stanislau Hlebik d09e107e1d mononoke: add merge commit validation
Summary:
Follow up from D21596758 - current logic of pushrebasing a merge is very
complicated. To prevent repo corruptions let's do a very simple validation -
generate hg changeset from a rebased bonsai changeset.

Given that generating hg changeset is an expensive operation let's do it only
after the first rebase attempt - otherwise we might risk constantly losing the
pushrebase race.

Differential Revision: D21659187

fbshipit-source-id: f43a855cf0fbdbd11a40d3ec38283af344cde5e6
2020-05-20 11:17:21 -07:00

50 lines
2.0 KiB
TOML

[package]
name = "pushrebase"
edition = "2018"
version = "0.1.0"
authors = ['Facebook']
license = "GPLv2+"
include = ["src/**/*.rs"]
[dependencies]
blobrepo = { path = "../blobrepo" }
blobrepo_utils = { path = "../blobrepo_utils" }
blobstore = { path = "../blobstore" }
bookmarks = { path = "../bookmarks" }
context = { path = "../server/context" }
derived_data = { path = "../derived_data" }
derived_data_filenodes = { path = "../derived_data/filenodes" }
manifest = { path = "../manifest" }
mercurial_types = { path = "../mercurial/types" }
metaconfig_types = { path = "../metaconfig/types" }
mononoke_types = { path = "../mononoke_types" }
revset = { path = "../revset" }
tunables = { path = "../tunables" }
cloned = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
futures_ext = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
sql = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
anyhow = "1.0"
async-trait = "0.1.29"
futures = { version = "0.3", features = ["async-await", "compat"] }
futures-old = { package = "futures", version = "0.1" }
maplit = "1.0"
slog = { version = "2.5", features = ["max_level_debug"] }
thiserror = "1.0"
[dev-dependencies]
blobrepo_factory = { path = "../blobrepo/factory" }
dbbookmarks = { path = "../bookmarks/dbbookmarks" }
filestore = { path = "../filestore" }
fixtures = { path = "../tests/fixtures" }
mononoke_types-mocks = { path = "../mononoke_types/mocks" }
mutable_counters = { path = "../mutable_counters" }
sql_construct = { path = "../common/sql_construct" }
sql_ext = { path = "../common/rust/sql_ext" }
tests_utils = { path = "../tests/utils" }
async_unit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
itertools = "0.8"
rand = { version = "0.7", features = ["small_rng"] }
tokio = { version = "=0.2.13", features = ["full"] }
tokio-compat = "0.1"