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

Unified Diff: appengine/chromium_rietveld/upload.py

Issue 1054683003: upload.py will soon have dry run flags, read and use them in Rietveld (Closed) Base URL: https://chromium.googlesource.com/infra/infra@master
Patch Set: 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 | « appengine/chromium_rietveld/codereview/views.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/chromium_rietveld/upload.py
diff --git a/appengine/chromium_rietveld/upload.py b/appengine/chromium_rietveld/upload.py
index 0b056b4577c56d791ee2d71e37bf4e2c6d436a4b..9bde3d7b7b471a6bf5a36b0d09adeb6991eb7735 100755
--- a/appengine/chromium_rietveld/upload.py
+++ b/appengine/chromium_rietveld/upload.py
@@ -655,6 +655,9 @@ group.add_option("--target_ref", action="store", dest="target_ref",
default=None,
help="The target ref that is transitively tracked by the "
"local branch this patch comes from.")
+parser.add_option("--cq_dry_run", action="store_true",
+ help="Send the patchset to do a CQ dry run right after "
+ "upload.")
group.add_option("--download_base", action="store_true",
dest="download_base", default=False,
help="Base files will be downloaded by the server "
@@ -2622,6 +2625,9 @@ def RealMain(argv, data=None):
form_fields.append(("project", options.project))
if options.target_ref:
form_fields.append(("target_ref", options.target_ref))
+ if options.cq_dry_run:
+ form_fields.append(("cq_dry_run", "1"))
+ form_fields.append(("commit", "1"))
# Process --message, --title and --file.
message = options.message or ""
« no previous file with comments | « appengine/chromium_rietveld/codereview/views.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698