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 /project.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 'project.py')
-rw-r--r-- | project.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -205,6 +205,7 @@ class ReviewableBranch(object): | |||
205 | private=False, | 205 | private=False, |
206 | notify=None, | 206 | notify=None, |
207 | wip=False, | 207 | wip=False, |
208 | ready=False, | ||
208 | dest_branch=None, | 209 | dest_branch=None, |
209 | validate_certs=True, | 210 | validate_certs=True, |
210 | push_options=None): | 211 | push_options=None): |
@@ -217,6 +218,7 @@ class ReviewableBranch(object): | |||
217 | private=private, | 218 | private=private, |
218 | notify=notify, | 219 | notify=notify, |
219 | wip=wip, | 220 | wip=wip, |
221 | ready=ready, | ||
220 | dest_branch=dest_branch, | 222 | dest_branch=dest_branch, |
221 | validate_certs=validate_certs, | 223 | validate_certs=validate_certs, |
222 | push_options=push_options) | 224 | push_options=push_options) |
@@ -1003,6 +1005,7 @@ class Project(object): | |||
1003 | private=False, | 1005 | private=False, |
1004 | notify=None, | 1006 | notify=None, |
1005 | wip=False, | 1007 | wip=False, |
1008 | ready=False, | ||
1006 | dest_branch=None, | 1009 | dest_branch=None, |
1007 | validate_certs=True, | 1010 | validate_certs=True, |
1008 | push_options=None): | 1011 | push_options=None): |
@@ -1072,6 +1075,8 @@ class Project(object): | |||
1072 | opts += ['private'] | 1075 | opts += ['private'] |
1073 | if wip: | 1076 | if wip: |
1074 | opts += ['wip'] | 1077 | opts += ['wip'] |
1078 | if ready: | ||
1079 | opts += ['ready'] | ||
1075 | if opts: | 1080 | if opts: |
1076 | ref_spec = ref_spec + '%' + ','.join(opts) | 1081 | ref_spec = ref_spec + '%' + ','.join(opts) |
1077 | cmd.append(ref_spec) | 1082 | cmd.append(ref_spec) |