summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/upload.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py
index f40ac9df..61b18bc2 100644
--- a/subcmds/upload.py
+++ b/subcmds/upload.py
@@ -152,8 +152,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
152 dest='current_branch', action='store_true', 152 dest='current_branch', action='store_true',
153 help='Upload current git branch.') 153 help='Upload current git branch.')
154 p.add_option('-d', '--draft', 154 p.add_option('-d', '--draft',
155 action='store_true', dest='private', default=False, 155 action='store_true', dest='draft', default=False,
156 help='(Deprecated). If specified, upload as a private change.') 156 help='If specified, upload as a draft.')
157 p.add_option('-p', '--private', 157 p.add_option('-p', '--private',
158 action='store_true', dest='private', default=False, 158 action='store_true', dest='private', default=False,
159 help='If specified, upload as a private change.') 159 help='If specified, upload as a private change.')
@@ -205,7 +205,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
205 205
206 destination = opt.dest_branch or project.dest_branch or project.revisionExpr 206 destination = opt.dest_branch or project.dest_branch or project.revisionExpr
207 print('Upload project %s/ to remote branch %s%s:' % 207 print('Upload project %s/ to remote branch %s%s:' %
208 (project.relpath, destination, ' (private)' if opt.private else '')) 208 (project.relpath, destination, ' (draft)' if opt.draft else ''))
209 print(' branch %s (%2d commit%s, %s):' % ( 209 print(' branch %s (%2d commit%s, %s):' % (
210 name, 210 name,
211 len(commit_list), 211 len(commit_list),
@@ -386,6 +386,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
386 386
387 branch.UploadForReview(people, 387 branch.UploadForReview(people,
388 auto_topic=opt.auto_topic, 388 auto_topic=opt.auto_topic,
389 draft=opt.draft,
389 private=opt.private, 390 private=opt.private,
390 wip=opt.wip, 391 wip=opt.wip,
391 dest_branch=destination) 392 dest_branch=destination)