sapling/eden/cli/TARGETS
Michael Bolin 70050affcc Introduce eden debug hg_get_dirstate_tuple.
Summary:
This is a convenient way to test the `hgGetDirstateTuple()` endpoint in
`eden.thrift`.

Reviewed By: quark-zju, wez

Differential Revision: D5654237

fbshipit-source-id: 0b285e056002d4556733a53293582345f36780b2
2017-08-18 21:49:59 -07:00

56 lines
1.1 KiB
Plaintext

include_defs("//eden/DEFS")
python_binary(
name = "cli",
srcs = ["main.py"],
main_module = "eden/cli/main",
deps = [
"@/eden/cli:debug",
"@/eden/cli:lib",
"@/eden/fs/service:py-client",
],
)
python_library(
name = "lib",
srcs = [
"cmd_util.py",
"config.py",
"configinterpolator.py",
"rage.py",
"util.py",
],
)
python_library(
name = "debug",
srcs = [
"debug.py",
],
deps = [
":lib",
"@/eden/fs/inodes:hgdirstate-py",
"@/eden/fs/inodes:serialization-py",
],
)
python_unittest(
name = "test",
srcs = glob(["test/*.py"]),
deps = [":lib"],
)
for build_target, suffix in get_daemon_versions():
# The :all rule is a convenience to ensure that the CLI, daemon, and Thrift
# Python client for the Hg extension are built.
buck_genrule(
name = 'all%s' % suffix,
srcs = [
':cli',
build_target.replace('@/', '//'),
'//eden/fs/service:thrift-EdenService-pyremote',
],
out = 'eden%s-stamp' % suffix,
cmd = 'touch $OUT',
)