From 819cc81c57848a1b2331c603c036547fad6caa75 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 19 Feb 2020 02:27:22 -0500 Subject: upload: add support for standard --dry-run Change-Id: I69ea2f3170ba17bfb9e0e3771db4ecc66a736797 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255856 Tested-by: Mike Frysinger Reviewed-by: David Pursehouse --- subcmds/upload.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index 633ddc81..6ef4955e 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -181,6 +181,9 @@ Gerrit Code Review: https://www.gerritcodereview.com/ type='string', action='store', dest='dest_branch', metavar='BRANCH', help='Submit for review on this target branch.') + p.add_option('-n', '--dry-run', + dest='dryrun', default=False, action='store_true', + help='Do everything except actually upload the CL.') p.add_option('--no-cert-checks', dest='validate_certs', action='store_false', default=True, help='Disable verifying ssl certs (unsafe).') @@ -423,6 +426,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ continue branch.UploadForReview(people, + dryrun=opt.dryrun, auto_topic=opt.auto_topic, hashtags=hashtags, draft=opt.draft, -- cgit v1.2.3-54-g00ecf