entrypoint: introduce buck-buildable hg.rust

Reviewed By: farnz

Differential Revision: D15844921

fbshipit-source-id: 16ef18915b82344a553fec92af9ec9fc445e3ccb
This commit is contained in:
Kostia Balytskyi 2019-06-17 11:29:05 -07:00 committed by Facebook Github Bot
parent 8925b1dcb8
commit 36f4698c5a

View File

@ -188,7 +188,10 @@ class FindExeClass(object):
start_path = os.path.abspath(sys.argv[0])
hg_real_bin = pathutils.get_build_rule_output_path(
"//scm/hg:hg", pathutils.BuildRuleTypes.PYTHON_BINARY, start_path=start_path
"//scm/hg:hg",
pathutils.BuildRuleTypes.GENRULE,
start_path=start_path,
output_name="hg/hg",
)
if hg_real_bin:
return hg_real_bin