summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-19 02:27:22 -0500
committerDavid Pursehouse <dpursehouse@collab.net>2020-02-19 08:32:12 +0000
commit819cc81c57848a1b2331c603c036547fad6caa75 (patch)
tree77757cc8a44d0d9d7fef774b3bb0816a7ba64b93 /subcmds
parent84685ba1875db265051cdd043d5dba768c7c42e5 (diff)
downloadgit-repo-819cc81c57848a1b2331c603c036547fad6caa75.tar.gz
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 <vapier@google.com> Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/upload.py4
1 files changed, 4 insertions, 0 deletions
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/
181 type='string', action='store', dest='dest_branch', 181 type='string', action='store', dest='dest_branch',
182 metavar='BRANCH', 182 metavar='BRANCH',
183 help='Submit for review on this target branch.') 183 help='Submit for review on this target branch.')
184 p.add_option('-n', '--dry-run',
185 dest='dryrun', default=False, action='store_true',
186 help='Do everything except actually upload the CL.')
184 p.add_option('--no-cert-checks', 187 p.add_option('--no-cert-checks',
185 dest='validate_certs', action='store_false', default=True, 188 dest='validate_certs', action='store_false', default=True,
186 help='Disable verifying ssl certs (unsafe).') 189 help='Disable verifying ssl certs (unsafe).')
@@ -423,6 +426,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/
423 continue 426 continue
424 427
425 branch.UploadForReview(people, 428 branch.UploadForReview(people,
429 dryrun=opt.dryrun,
426 auto_topic=opt.auto_topic, 430 auto_topic=opt.auto_topic,
427 hashtags=hashtags, 431 hashtags=hashtags,
428 draft=opt.draft, 432 draft=opt.draft,