|
@@ -152,8 +152,8 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
dest='current_branch', action='store_true',
|
|
dest='current_branch', action='store_true',
|
|
|
help='Upload current git branch.')
|
|
help='Upload current git branch.')
|
|
|
p.add_option('-d', '--draft',
|
|
p.add_option('-d', '--draft',
|
|
|
- action='store_true', dest='private', default=False,
|
|
|
|
|
- help='(Deprecated). If specified, upload as a private change.')
|
|
|
|
|
|
|
+ action='store_true', dest='draft', default=False,
|
|
|
|
|
+ help='If specified, upload as a draft.')
|
|
|
p.add_option('-p', '--private',
|
|
p.add_option('-p', '--private',
|
|
|
action='store_true', dest='private', default=False,
|
|
action='store_true', dest='private', default=False,
|
|
|
help='If specified, upload as a private change.')
|
|
help='If specified, upload as a private change.')
|
|
@@ -205,7 +205,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
|
|
|
|
|
destination = opt.dest_branch or project.dest_branch or project.revisionExpr
|
|
destination = opt.dest_branch or project.dest_branch or project.revisionExpr
|
|
|
print('Upload project %s/ to remote branch %s%s:' %
|
|
print('Upload project %s/ to remote branch %s%s:' %
|
|
|
- (project.relpath, destination, ' (private)' if opt.private else ''))
|
|
|
|
|
|
|
+ (project.relpath, destination, ' (draft)' if opt.draft else ''))
|
|
|
print(' branch %s (%2d commit%s, %s):' % (
|
|
print(' branch %s (%2d commit%s, %s):' % (
|
|
|
name,
|
|
name,
|
|
|
len(commit_list),
|
|
len(commit_list),
|
|
@@ -386,6 +386,7 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
|
|
|
|
|
branch.UploadForReview(people,
|
|
branch.UploadForReview(people,
|
|
|
auto_topic=opt.auto_topic,
|
|
auto_topic=opt.auto_topic,
|
|
|
|
|
+ draft=opt.draft,
|
|
|
private=opt.private,
|
|
private=opt.private,
|
|
|
wip=opt.wip,
|
|
wip=opt.wip,
|
|
|
dest_branch=destination)
|
|
dest_branch=destination)
|