diff options
author | William Escande <wescande@google.com> | 2022-08-02 16:05:37 -0700 |
---|---|---|
committer | William Escande <wescande@google.com> | 2022-08-03 20:17:06 +0000 |
commit | ac76fd3e3a08024493f28913ec0c9660282d5f5b (patch) | |
tree | 61ec745cf2eb6d04e8d29bf4ad7fee6542c6714b /subcmds/upload.py | |
parent | a8c34d1075123ca58f56cc93e9564efdb13292b2 (diff) | |
download | git-repo-ac76fd3e3a08024493f28913ec0c9660282d5f5b.tar.gz |
upload: Add ready flag to remove wip
The `--wip` allow to bulk push changed as work-in-progress. This CL
intend to allow the opposite opperation by removing the wip mark on the
CL and set it to be ready to review
Change-Id: If0743c5b14829f77be2def5a8547060d06a5648c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/342214
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: William Escande <wescande@google.com>
Diffstat (limited to 'subcmds/upload.py')
-rw-r--r-- | subcmds/upload.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/upload.py b/subcmds/upload.py index 09ee5c02..01d1dea4 100644 --- a/subcmds/upload.py +++ b/subcmds/upload.py | |||
@@ -190,6 +190,9 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
190 | p.add_option('-w', '--wip', | 190 | p.add_option('-w', '--wip', |
191 | action='store_true', dest='wip', default=False, | 191 | action='store_true', dest='wip', default=False, |
192 | help='upload as a work-in-progress change') | 192 | help='upload as a work-in-progress change') |
193 | p.add_option('-r', '--ready', | ||
194 | action='store_true', default=False, | ||
195 | help='mark change as ready (clears work-in-progress setting)') | ||
193 | p.add_option('-o', '--push-option', | 196 | p.add_option('-o', '--push-option', |
194 | type='string', action='append', dest='push_options', | 197 | type='string', action='append', dest='push_options', |
195 | default=[], | 198 | default=[], |
@@ -465,6 +468,7 @@ Gerrit Code Review: https://www.gerritcodereview.com/ | |||
465 | private=opt.private, | 468 | private=opt.private, |
466 | notify=notify, | 469 | notify=notify, |
467 | wip=opt.wip, | 470 | wip=opt.wip, |
471 | ready=opt.ready, | ||
468 | dest_branch=destination, | 472 | dest_branch=destination, |
469 | validate_certs=opt.validate_certs, | 473 | validate_certs=opt.validate_certs, |
470 | push_options=opt.push_options) | 474 | push_options=opt.push_options) |