mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
6d5b3ac1f2
Summary: This diff adds two new bits of functionality to `LiveCommitSyncConfig`: - getting all possible versions of `CommitSyncConfig` for a given repo - getting `CommitSyncConfig` for a repo by version name These bits are meant to be used in: - `commit_validator` and `bookmarks_validator`, which would need to run validation against a specific config version - `mononoke_admin`, which would need to be able to query all versions, display the version used to sync two commits and so on Reviewed By: StanislavGlebik Differential Revision: D22235381 fbshipit-source-id: 42326fe853b588849bce0185b456a5365f3d8dff
32 lines
1.0 KiB
TOML
32 lines
1.0 KiB
TOML
[package]
|
|
name = "live_commit_sync_config"
|
|
edition = "2018"
|
|
version = "0.1.0"
|
|
authors = ['Facebook']
|
|
license = "GPLv2+"
|
|
include = ["src/**/*.rs", "test/**/*.rs"]
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[test]]
|
|
name = "live_commit_sync_config_test"
|
|
path = "test/main.rs"
|
|
|
|
[dependencies]
|
|
commitsync = { path = "../../../../configerator/structs/scm/mononoke/repos/commitsync" }
|
|
context = { path = "../../server/context" }
|
|
metaconfig_parser = { path = "../../metaconfig/parser" }
|
|
metaconfig_types = { path = "../../metaconfig/types" }
|
|
mononoke_types = { path = "../../mononoke_types" }
|
|
pushredirect_enable = { path = "../../../../configerator/structs/scm/mononoke/pushredirect" }
|
|
repos = { path = "../../../../configerator/structs/scm/mononoke/repos/repos" }
|
|
cached_config = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
anyhow = "1.0"
|
|
slog = { version = "2.5", features = ["max_level_debug"] }
|
|
thiserror = "1.0"
|
|
|
|
[dev-dependencies]
|
|
fbinit = { git = "https://github.com/facebookexperimental/rust-shed.git", branch = "master" }
|
|
ascii = "1.0"
|