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

Unified Diff: git_cl.py

Issue 1053653004: Add ability to CQ dry run patchsets during "git cl upload" (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Cleanup Created 5 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 | third_party/upload.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: git_cl.py
diff --git a/git_cl.py b/git_cl.py
index 039b35df17cdfb4c402730c3d233c057df27e4b0..1754780b5fa44d9802fc1142205d58bf8bd4fbb8 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1940,6 +1940,9 @@ def RietveldUpload(options, args, cl, change):
if project:
upload_args.extend(['--project', project])
+ if options.cq_dry_run:
+ upload_args.extend(['--cq_dry_run'])
+
try:
upload_args = ['upload'] + upload_args + args
logging.info('upload.RealMain(%s)', upload_args)
@@ -2020,6 +2023,9 @@ def CMDupload(parser, args):
help='email address to use to connect to Rietveld')
parser.add_option('--tbr-owners', dest='tbr_owners', action='store_true',
help='add a set of OWNERS to TBR')
+ parser.add_option('--cq-dry-run', dest='cq_dry_run', action='store_true',
+ help='Send the patchset to do a CQ dry run right after '
+ 'upload.')
add_git_similarity(parser)
(options, args) = parser.parse_args(args)
« no previous file with comments | « no previous file | third_party/upload.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698