mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
497a2ae765
Summary: This makes several improvements to the hg import tester script: - If no --edenDir flag is specified, initialize a new temporary directory to keep the RocksDB data store. - Add a `--rocksdb_options_file` flag to allow controlling the options used for the RocksDB store. - Add an --import_type flag to allow explicitly selecting if we should test the flat manifest or tree manifest import code. - Add a --flat_import_file flag, to allow testing a pre-generated flat manifest input data file, rather than retrieving the data from mercurial. This allows benchmarking only the C++ import code, and eliminating the python portion of the import. The input file can be generated by running `hg_import_helper.py --manifest <revision>` Reviewed By: wez Differential Revision: D5541732 fbshipit-source-id: 340af4fea872412248d41453792b2179f0afa466
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
# @autodeps
|
|
|
|
PATH_SRCS = ["PathFuncs.cpp"]
|
|
|
|
PATH_HEADERS = ["PathFuncs.h"]
|
|
|
|
cpp_library(
|
|
name = "utils",
|
|
srcs = glob(
|
|
["*.cpp"],
|
|
excludes = PATH_SRCS,
|
|
),
|
|
headers = glob(
|
|
["*.h"],
|
|
excludes = PATH_HEADERS,
|
|
),
|
|
deps = [
|
|
":path",
|
|
"@/folly:conv",
|
|
"@/folly:dynamic",
|
|
"@/folly:evicting_cache_map",
|
|
"@/folly:exception",
|
|
"@/folly:exception_wrapper",
|
|
"@/folly:fbvector",
|
|
"@/folly:format",
|
|
"@/folly:singleton",
|
|
"@/folly:string",
|
|
"@/folly:subprocess",
|
|
"@/folly/experimental/logging:logging",
|
|
"@/folly/futures:core",
|
|
"@/folly/futures:shared_promise",
|
|
],
|
|
external_deps = [
|
|
"gflags",
|
|
"glog",
|
|
],
|
|
)
|
|
|
|
cpp_library(
|
|
name = "path",
|
|
srcs = PATH_SRCS,
|
|
headers = PATH_HEADERS,
|
|
deps = [
|
|
"@/folly:exception",
|
|
"@/folly:format",
|
|
"@/folly:hash",
|
|
"@/folly:optional",
|
|
"@/folly:string",
|
|
"@/folly/portability:stdlib",
|
|
],
|
|
external_deps = [
|
|
"boost",
|
|
],
|
|
)
|