diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 10 |
1 files changed, 1 insertions, 9 deletions
| @@ -175,14 +175,12 @@ class ReviewableBranch(object): | |||
| 175 | 175 | ||
| 176 | def UploadForReview(self, people, | 176 | def UploadForReview(self, people, |
| 177 | auto_topic=False, | 177 | auto_topic=False, |
| 178 | draft=False, | ||
| 179 | private=False, | 178 | private=False, |
| 180 | wip=False, | 179 | wip=False, |
| 181 | dest_branch=None): | 180 | dest_branch=None): |
| 182 | self.project.UploadForReview(self.name, | 181 | self.project.UploadForReview(self.name, |
| 183 | people, | 182 | people, |
| 184 | auto_topic=auto_topic, | 183 | auto_topic=auto_topic, |
| 185 | draft=draft, | ||
| 186 | private=private, | 184 | private=private, |
| 187 | wip=wip, | 185 | wip=wip, |
| 188 | dest_branch=dest_branch) | 186 | dest_branch=dest_branch) |
| @@ -1110,7 +1108,6 @@ class Project(object): | |||
| 1110 | def UploadForReview(self, branch=None, | 1108 | def UploadForReview(self, branch=None, |
| 1111 | people=([], []), | 1109 | people=([], []), |
| 1112 | auto_topic=False, | 1110 | auto_topic=False, |
| 1113 | draft=False, | ||
| 1114 | private=False, | 1111 | private=False, |
| 1115 | wip=False, | 1112 | wip=False, |
| 1116 | dest_branch=None): | 1113 | dest_branch=None): |
| @@ -1156,12 +1153,7 @@ class Project(object): | |||
| 1156 | if dest_branch.startswith(R_HEADS): | 1153 | if dest_branch.startswith(R_HEADS): |
| 1157 | dest_branch = dest_branch[len(R_HEADS):] | 1154 | dest_branch = dest_branch[len(R_HEADS):] |
| 1158 | 1155 | ||
| 1159 | upload_type = 'for' | 1156 | ref_spec = '%s:refs/for/%s' % (R_HEADS + branch.name, dest_branch) |
| 1160 | if draft: | ||
| 1161 | upload_type = 'drafts' | ||
| 1162 | |||
| 1163 | ref_spec = '%s:refs/%s/%s' % (R_HEADS + branch.name, upload_type, | ||
| 1164 | dest_branch) | ||
| 1165 | if auto_topic: | 1157 | if auto_topic: |
| 1166 | ref_spec = ref_spec + '/' + branch.name | 1158 | ref_spec = ref_spec + '/' + branch.name |
| 1167 | 1159 | ||
