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

Unified Diff: commit_queue.py

Issue 1619383002: depot_tools/commit_queue: add command line flags for experimental and triggered builders (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: commit_queue.py
diff --git a/commit_queue.py b/commit_queue.py
index 7adcc975c09a0ca55d16eea55c9f909d6b014900..ec8f51a188df32c076fbc39dbfbb8b9bcbf537f6 100755
--- a/commit_queue.py
+++ b/commit_queue.py
@@ -167,11 +167,22 @@ def CMDbuilders(parser, args):
]
}
"""
- _, args = parser.parse_args(args)
+ parser.add_option('--include-experimental', action='store_true')
+ parser.add_option('--exclude-experimental', action='store_false',
+ dest='include_experimental')
+ parser.add_option('--include-triggered', action='store_true')
+ parser.add_option('--exclude-triggered', action='store_false',
+ dest='include_triggered')
+ # The defaults have been chosen because of backward compatbility.
+ parser.set_defaults(include_experimental=True, include_triggered=True)
+ options, args = parser.parse_args(args)
if len(args) != 1:
parser.error('Expected a single path to CQ config. Got: %s' %
' '.join(args))
- print json.dumps(get_master_builder_map(args[0]))
+ print json.dumps(get_master_builder_map(
+ args[0],
+ include_experimental=options.include_experimental,
+ include_triggered=options.include_triggered))
CMDbuilders.func_usage_more = '<path-to-cq-config>'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698