diff options
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 6 |
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, |