Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1447)

Unified Diff: recipes.py

Issue 1829403003: Add recipes to the depgraph command. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/recipes-py@master
Patch Set: Lint Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_engine/depgraph.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: recipes.py
diff --git a/recipes.py b/recipes.py
index 3842441870f8072f0773e1394a594d5a14582ea3..15e48463fc53a435c3c3092c210a5d8d6d6c95ed 100755
--- a/recipes.py
+++ b/recipes.py
@@ -211,8 +211,8 @@ def depgraph(package_deps, args):
_, config_file = get_package_config(args)
universe = loader.RecipeUniverse(package_deps, config_file)
- depgraph.main(universe, ignore_packages=args.ignore_package,
- stdout=args.output)
+ depgraph.main(universe, package_deps.root_package,
+ args.ignore_package, args.output, args.recipe_filter)
def doc(package_deps, args):
@@ -330,6 +330,12 @@ def main():
'--ignore-package', action='append', default=[],
help='Ignore a recipe package (e.g. recipe_engine). Can be passed '
'multiple times')
+ depgraph_p.add_argument(
+ '--recipe-filter', default='',
+ help='A recipe substring to examine. If present, the depgraph will '
+ 'include a recipe section containing recipes whose names contain '
+ 'this substring. It will also filter all nodes of the graph to only '
+ 'include modules touched by the filtered recipes.')
doc_p = subp.add_parser(
'doc',
« no previous file with comments | « recipe_engine/depgraph.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698