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) |