mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Add tests and fixes for |None| url values in deps entries.
This is useful for processing purely "local" DEPS files, with a command-line like:
gclient revinfo --output-json /tmp/out \
--spec 'solutions=[{"name": ".", "deps_file": "myDEPS", "url": None}]'
This is specifically to fix the "revinfo --output-json" case, but it
also cleans up some errors in the 'flattening' test cases. Note that
None values already work when using 'revinfo' with stdout output, it's
just the json output that complains.
BUG=825063
Change-Id: If5f69ba51cb9d0aa0f2b48a2f9b4ed8706b4c738
Reviewed-on: https://chromium-review.googlesource.com/989022
Commit-Queue: Michael Moss <mmoss@chromium.org>
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Aaron Gable <agable@chromium.org>
This commit is contained in:
@@ -518,6 +518,15 @@ deps = {
|
||||
'url': '/repo_4',
|
||||
'condition': 'False',
|
||||
},
|
||||
# Entries can have a None repository, which has the effect of either:
|
||||
# - disabling a dep checkout (e.g. in a .gclient solution to prevent checking
|
||||
# out optional large repos, or in deps_os where some repos aren't used on some
|
||||
# platforms)
|
||||
# - allowing a completely local directory to be processed by gclient (handy
|
||||
# for dealing with "custom" DEPS, like buildspecs).
|
||||
'/repoLocal': {
|
||||
'url': None,
|
||||
},
|
||||
'src/repo8': '/repo_8',
|
||||
}
|
||||
deps_os ={
|
||||
|
||||
Reference in New Issue
Block a user