|
@@ -154,6 +154,12 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
p.add_option('-d', '--draft',
|
|
p.add_option('-d', '--draft',
|
|
|
action='store_true', dest='draft', default=False,
|
|
action='store_true', dest='draft', default=False,
|
|
|
help='If specified, upload as a draft.')
|
|
help='If specified, upload as a draft.')
|
|
|
|
|
+ p.add_option('-p', '--private',
|
|
|
|
|
+ action='store_true', dest='private', default=False,
|
|
|
|
|
+ help='If specified, upload as a private change.')
|
|
|
|
|
+ p.add_option('-w', '--wip',
|
|
|
|
|
+ action='store_true', dest='wip', default=False,
|
|
|
|
|
+ help='If specified, upload as a work-in-progress change.')
|
|
|
p.add_option('-D', '--destination', '--dest',
|
|
p.add_option('-D', '--destination', '--dest',
|
|
|
type='string', action='store', dest='dest_branch',
|
|
type='string', action='store', dest='dest_branch',
|
|
|
metavar='BRANCH',
|
|
metavar='BRANCH',
|
|
@@ -378,7 +384,12 @@ Gerrit Code Review: http://code.google.com/p/gerrit/
|
|
|
branch.uploaded = False
|
|
branch.uploaded = False
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
- branch.UploadForReview(people, auto_topic=opt.auto_topic, draft=opt.draft, dest_branch=destination)
|
|
|
|
|
|
|
+ branch.UploadForReview(people,
|
|
|
|
|
+ auto_topic=opt.auto_topic,
|
|
|
|
|
+ draft=opt.draft,
|
|
|
|
|
+ private=opt.private,
|
|
|
|
|
+ wip=opt.wip,
|
|
|
|
|
+ dest_branch=destination)
|
|
|
branch.uploaded = True
|
|
branch.uploaded = True
|
|
|
except UploadError as e:
|
|
except UploadError as e:
|
|
|
branch.error = e
|
|
branch.error = e
|