gclient: allow clients to pass deps_file name as config kwarg.

Bug: 1041701
Change-Id: I7c25d6b25eefc29f7a5e815d8664d5dfd2226cf5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2019018
Reviewed-by: Garrett Beaty <gbeaty@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
changes/18/2019018/2
John Budorick 5 years ago committed by LUCI CQ
parent 1248b8ef4a
commit f437869d41

@ -11,14 +11,14 @@ from . import api as gclient_api
def BaseConfig(USE_MIRROR=True, CACHE_DIR=None,
BUILDSPEC_VERSION=None, **_kwargs):
BUILDSPEC_VERSION=None, deps_file='.DEPS.git', **_kwargs):
cache_dir = str(CACHE_DIR) if CACHE_DIR else None
return ConfigGroup(
solutions = ConfigList(
lambda: ConfigGroup(
name = Single(basestring),
url = Single((basestring, type(None)), empty_val=''),
deps_file = Single(basestring, empty_val='.DEPS.git', required=False,
deps_file = Single(basestring, empty_val=deps_file, required=False,
hidden=False),
managed = Single(bool, empty_val=True, required=False, hidden=False),
custom_deps = Dict(value_type=(basestring, types.NoneType)),

Loading…
Cancel
Save