diff options
author | Mike Frysinger <vapier@google.com> | 2020-02-25 02:58:04 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@google.com> | 2020-02-25 20:58:09 +0000 |
commit | b0fbc7fb58af8ee1875993daad481b87bf8c2f94 (patch) | |
tree | 8c433776a7fed38dffbe208c8a8d4d976f626bae /project.py | |
parent | 4c418bf423300b0cc4c82ce9ecca5579274a29fa (diff) | |
download | git-repo-b0fbc7fb58af8ee1875993daad481b87bf8c2f94.tar.gz |
upload: drop support for drafts
Draft CLs were replaced by private/wip CLs in Gerrit instead years ago.
Change-Id: If4f3d6606aad40a6f1617a49681dfd45c64d3d37
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256673
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -202,7 +202,6 @@ class ReviewableBranch(object): | |||
202 | auto_topic=False, | 202 | auto_topic=False, |
203 | hashtags=(), | 203 | hashtags=(), |
204 | labels=(), | 204 | labels=(), |
205 | draft=False, | ||
206 | private=False, | 205 | private=False, |
207 | notify=None, | 206 | notify=None, |
208 | wip=False, | 207 | wip=False, |
@@ -215,7 +214,6 @@ class ReviewableBranch(object): | |||
215 | auto_topic=auto_topic, | 214 | auto_topic=auto_topic, |
216 | hashtags=hashtags, | 215 | hashtags=hashtags, |
217 | labels=labels, | 216 | labels=labels, |
218 | draft=draft, | ||
219 | private=private, | 217 | private=private, |
220 | notify=notify, | 218 | notify=notify, |
221 | wip=wip, | 219 | wip=wip, |
@@ -1349,7 +1347,6 @@ class Project(object): | |||
1349 | auto_topic=False, | 1347 | auto_topic=False, |
1350 | hashtags=(), | 1348 | hashtags=(), |
1351 | labels=(), | 1349 | labels=(), |
1352 | draft=False, | ||
1353 | private=False, | 1350 | private=False, |
1354 | notify=None, | 1351 | notify=None, |
1355 | wip=False, | 1352 | wip=False, |
@@ -1399,12 +1396,7 @@ class Project(object): | |||
1399 | if dest_branch.startswith(R_HEADS): | 1396 | if dest_branch.startswith(R_HEADS): |
1400 | dest_branch = dest_branch[len(R_HEADS):] | 1397 | dest_branch = dest_branch[len(R_HEADS):] |
1401 | 1398 | ||
1402 | upload_type = 'for' | 1399 | ref_spec = '%s:refs/for/%s' % (R_HEADS + branch.name, dest_branch) |
1403 | if draft: | ||
1404 | upload_type = 'drafts' | ||
1405 | |||
1406 | ref_spec = '%s:refs/%s/%s' % (R_HEADS + branch.name, upload_type, | ||
1407 | dest_branch) | ||
1408 | opts = [] | 1400 | opts = [] |
1409 | if auto_topic: | 1401 | if auto_topic: |
1410 | opts += ['topic=' + branch.name] | 1402 | opts += ['topic=' + branch.name] |