Commit f437869d authored by John Budorick's avatar John Budorick Committed by LUCI CQ

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/+/2019018Reviewed-by: 's avatarGarrett Beaty <gbeaty@chromium.org>
Reviewed-by: 's avatarRobbie Iannucci <iannucci@chromium.org>
Commit-Queue: John Budorick <jbudorick@chromium.org>
parent 1248b8ef
......@@ -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)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment