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

Unified Diff: tools/checkteamtags/extract_components.py

Issue 2738123003: Add an option to include all subdirs into output (Closed)
Patch Set: Better name for a function Created 3 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 | « no previous file | tools/checkteamtags/extract_components_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/checkteamtags/extract_components.py
diff --git a/tools/checkteamtags/extract_components.py b/tools/checkteamtags/extract_components.py
index e944894eb7d00e8584c7ec91ff7e8481ee65b5fb..d6c8810b19b7297707894a0a860a34aaa57537bb 100755
--- a/tools/checkteamtags/extract_components.py
+++ b/tools/checkteamtags/extract_components.py
@@ -153,13 +153,17 @@ Examples:
help='Print complete coverage statistic')
parser.add_option('-s', '--stat_coverage', type="int",
help='Specify directory depth to display coverage stats')
+ parser.add_option('--include-subdirs', action='store_true', default=False,
+ help='List subdirectories without OWNERS file or component '
+ 'tag as having same component as parent')
options, args = parser.parse_args(argv[1:])
if args:
root = args[0]
else:
root = _DEFAULT_SRC_LOCATION
- mappings, warnings, errors, stats = aggregate_components_from_owners(root)
+ mappings, warnings, errors, stats = aggregate_components_from_owners(
+ root, include_subdirs=options.include_subdirs)
if options.verbose:
for w in warnings:
print w
« no previous file with comments | « no previous file | tools/checkteamtags/extract_components_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698