mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
edenapi: rename to edenapi_old
Summary: Move old EdenAPI crate to `scm/lib/edenapi/old` to make room for the new crate. This old code will eventually been deleted once all references to it are removed from the codebase. Reviewed By: quark-zju Differential Revision: D22305173 fbshipit-source-id: 45d211340900192d0488543ba13d9bf84909ce53
This commit is contained in:
parent
d73c63d862
commit
fdba0b98c2
@ -7,7 +7,7 @@ edition = "2018"
|
||||
bytes = "0.5"
|
||||
cpython-ext = { path = "../../../../lib/cpython-ext", default-features = false }
|
||||
cpython = { version = "0.5", default-features = false }
|
||||
edenapi = { path = "../../../../lib/edenapi" }
|
||||
edenapi-old = { path = "../../../../lib/edenapi/old" }
|
||||
pyrevisionstore = { path = "../pyrevisionstore" }
|
||||
revisionstore = { path = "../../../../lib/revisionstore" }
|
||||
types = { path = "../../../../lib/types" }
|
||||
|
@ -15,7 +15,7 @@ use bytes::Bytes;
|
||||
use cpython::*;
|
||||
|
||||
use cpython_ext::{PyNone, PyPathBuf, ResultPyErrExt};
|
||||
use edenapi::{
|
||||
use edenapi_old::{
|
||||
ApiError, ApiErrorKind, Config, DownloadStats, EdenApi, EdenApiCurlClient, ProgressFn,
|
||||
ProgressStats,
|
||||
};
|
||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
configparser = { path = "../configparser" }
|
||||
edenapi = { path = "../edenapi" }
|
||||
edenapi-old = { path = "../edenapi/old" }
|
||||
log = "0.4"
|
||||
manifest = { path = "../manifest" }
|
||||
manifest-tree = { path = "../manifest-tree" }
|
||||
|
@ -11,7 +11,7 @@ use crate::utils::key_from_path_node_slice;
|
||||
use anyhow::Result;
|
||||
use configparser::config::ConfigSet;
|
||||
use configparser::hg::ConfigSetHgExt;
|
||||
use edenapi::{EdenApi, EdenApiCurlClient};
|
||||
use edenapi_old::{EdenApi, EdenApiCurlClient};
|
||||
use log::warn;
|
||||
use manifest::{List, Manifest};
|
||||
use manifest_tree::TreeManifest;
|
||||
@ -51,7 +51,7 @@ impl BackingStore {
|
||||
}
|
||||
|
||||
let (blobstore, treestore) = if use_edenapi {
|
||||
let edenapi_config = edenapi::Config::from_hg_config(&config)?;
|
||||
let edenapi_config = edenapi_old::Config::from_hg_config(&config)?;
|
||||
let edenapi = EdenApiCurlClient::new(edenapi_config)?;
|
||||
let edenapi: Arc<dyn EdenApi> = Arc::new(edenapi);
|
||||
let fileremotestore = Arc::new(EdenApiHgIdRemoteStore::filestore(edenapi.clone()));
|
||||
|
@ -1,14 +1,14 @@
|
||||
[package]
|
||||
name = "edenapi"
|
||||
name = "edenapi-old"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "1.0.20"
|
||||
auth = { path = "../auth" }
|
||||
blackbox = { path = "../blackbox" }
|
||||
auth = { path = "../../auth" }
|
||||
blackbox = { path = "../../blackbox" }
|
||||
bytes = "0.5"
|
||||
configparser = { path = "../configparser" }
|
||||
configparser = { path = "../../configparser" }
|
||||
curl = { version = "0.4.20", features = ["http2"] }
|
||||
http = "0.1.17"
|
||||
itertools = "0.8.0"
|
||||
@ -20,8 +20,8 @@ serde = "1.0.89"
|
||||
serde_cbor = "0.11"
|
||||
thiserror = "1.0.5"
|
||||
tracing = "0"
|
||||
edenapi_types = { path = "types" }
|
||||
types = { path = "../types" }
|
||||
edenapi_types = { path = "../types" }
|
||||
types = { path = "../../types" }
|
||||
url = "2.1.0"
|
||||
|
||||
[dev-dependencies]
|
@ -18,7 +18,7 @@ cliparser = { path = "../cliparser", features = ["python"] }
|
||||
cpython-ext = { path = "../cpython-ext", default-features = false }
|
||||
cpython = { version = "0.5", default-features = false }
|
||||
dynamicconfig = { path = "../dynamicconfig" }
|
||||
edenapi = { path = "../edenapi" }
|
||||
edenapi-old = { path = "../edenapi/old" }
|
||||
edenfs-client = { path = "../edenfs-client"}
|
||||
encoding = { path = "../encoding" }
|
||||
env_logger = "0.7"
|
||||
|
@ -18,7 +18,7 @@ use tempfile::tempfile_in;
|
||||
|
||||
use blackbox::{event::Event, json, SessionId};
|
||||
use dynamicconfig::Generator;
|
||||
use edenapi::{Config as EdenApiConfig, EdenApi, EdenApiCurlClient};
|
||||
use edenapi_old::{Config as EdenApiConfig, EdenApi, EdenApiCurlClient};
|
||||
use revisionstore::{
|
||||
CorruptionPolicy, DataPackStore, HgIdDataStore, IndexedLogHgIdDataStore, UnionHgIdDataStore,
|
||||
};
|
||||
|
@ -14,7 +14,7 @@ anyhow = "1.0.20"
|
||||
bytes = { version = "0.5", features = ["serde"] }
|
||||
byteorder = "1.2.7"
|
||||
configparser = { path = "../configparser" }
|
||||
edenapi = { path = "../edenapi" }
|
||||
edenapi-old = { path = "../edenapi/old" }
|
||||
edenapi_types = { path = "../edenapi/types" }
|
||||
futures = "0.3"
|
||||
hex = "0.4"
|
||||
|
@ -9,7 +9,7 @@ use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use edenapi::EdenApi;
|
||||
use edenapi_old::EdenApi;
|
||||
use types::Key;
|
||||
|
||||
use crate::{
|
||||
|
@ -11,7 +11,7 @@ use anyhow::{Error, Result};
|
||||
use bytes::Bytes;
|
||||
|
||||
use configparser::config::ConfigSet;
|
||||
use edenapi::{ApiResult, DownloadStats, EdenApi, ProgressFn};
|
||||
use edenapi_old::{ApiResult, DownloadStats, EdenApi, ProgressFn};
|
||||
use edenapi_types::HistoryEntry;
|
||||
use types::{HgId, Key, NodeInfo, RepoPathBuf};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user