From 87984c6db4962043c2b9e5a5a4a30eaf6d066077 Mon Sep 17 00:00:00 2001 From: Changcheng Xiao Date: Wed, 2 Aug 2017 16:55:03 +0200 Subject: Add options for git-repo to support private and wip changes This change adds options for git-repo tool to support private changes and work-in-progress changes. Change-Id: I343491f5949f06f1580d53f9cc0dee2dca09130f --- subcmds/upload.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'subcmds/upload.py') diff --git a/subcmds/upload.py b/subcmds/upload.py index fa80c3d2..61b18bc2 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py @@ -154,6 +154,12 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ p.add_option('-d', '--draft', action='store_true', dest='draft', default=False, 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', type='string', action='store', dest='dest_branch', metavar='BRANCH', @@ -378,7 +384,12 @@ Gerrit Code Review: http://code.google.com/p/gerrit/ branch.uploaded = False 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 except UploadError as e: branch.error = e -- cgit v1.2.3-54-g00ecf