summaryrefslogtreecommitdiffstats
path: root/subcmds/upload.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2020-02-25 02:58:04 -0500
committerMike Frysinger <vapier@google.com>2020-02-25 20:58:09 +0000
commitb0fbc7fb58af8ee1875993daad481b87bf8c2f94 (patch)
tree8c433776a7fed38dffbe208c8a8d4d976f626bae /subcmds/upload.py
parent4c418bf423300b0cc4c82ce9ecca5579274a29fa (diff)
downloadgit-repo-b0fbc7fb58af8ee1875993daad481b87bf8c2f94.tar.gz
upload: drop support for drafts
Draft CLs were replaced by private/wip CLs in Gerrit instead years ago. Change-Id: If4f3d6606aad40a6f1617a49681dfd45c64d3d37 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256673 Reviewed-by: David Pursehouse <dpursehouse@collab.net> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r--subcmds/upload.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index 93f9c1e7..9c4337dc 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -173,9 +173,6 @@ Gerrit Code Review: https://www.gerritcodereview.com/
173 p.add_option('--cbr', '--current-branch', 173 p.add_option('--cbr', '--current-branch',
174 dest='current_branch', action='store_true', 174 dest='current_branch', action='store_true',
175 help='Upload current git branch.') 175 help='Upload current git branch.')
176 p.add_option('-d', '--draft',
177 action='store_true', dest='draft', default=False,
178 help='If specified, upload as a draft.')
179 p.add_option('--ne', '--no-emails', 176 p.add_option('--ne', '--no-emails',
180 action='store_false', dest='notify', default=True, 177 action='store_false', dest='notify', default=True,
181 help='If specified, do not send emails on upload.') 178 help='If specified, do not send emails on upload.')
@@ -247,7 +244,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/
247 244
248 destination = opt.dest_branch or project.dest_branch or project.revisionExpr 245 destination = opt.dest_branch or project.dest_branch or project.revisionExpr
249 print('Upload project %s/ to remote branch %s%s:' % 246 print('Upload project %s/ to remote branch %s%s:' %
250 (project.relpath, destination, ' (draft)' if opt.draft else '')) 247 (project.relpath, destination, ' (private)' if opt.private else ''))
251 print(' branch %s (%2d commit%s, %s):' % ( 248 print(' branch %s (%2d commit%s, %s):' % (
252 name, 249 name,
253 len(commit_list), 250 len(commit_list),
@@ -468,7 +465,6 @@ Gerrit Code Review: https://www.gerritcodereview.com/
468 auto_topic=opt.auto_topic, 465 auto_topic=opt.auto_topic,
469 hashtags=hashtags, 466 hashtags=hashtags,
470 labels=labels, 467 labels=labels,
471 draft=opt.draft,
472 private=opt.private, 468 private=opt.private,
473 notify=None if opt.notify else 'NONE', 469 notify=None if opt.notify else 'NONE',
474 wip=opt.wip, 470 wip=opt.wip,