From b0fbc7fb58af8ee1875993daad481b87bf8c2f94 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Feb 2020 02:58:04 -0500 Subject: 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 Tested-by: Mike Frysinger --- project.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'project.py') diff --git a/project.py b/project.py index 66a4b3be..b93dcd58 100644 --- a/project.py +++ b/project.py @@ -202,7 +202,6 @@ class ReviewableBranch(object): auto_topic=False, hashtags=(), labels=(), - draft=False, private=False, notify=None, wip=False, @@ -215,7 +214,6 @@ class ReviewableBranch(object): auto_topic=auto_topic, hashtags=hashtags, labels=labels, - draft=draft, private=private, notify=notify, wip=wip, @@ -1349,7 +1347,6 @@ class Project(object): auto_topic=False, hashtags=(), labels=(), - draft=False, private=False, notify=None, wip=False, @@ -1399,12 +1396,7 @@ class Project(object): if dest_branch.startswith(R_HEADS): dest_branch = dest_branch[len(R_HEADS):] - upload_type = 'for' - if draft: - upload_type = 'drafts' - - ref_spec = '%s:refs/%s/%s' % (R_HEADS + branch.name, upload_type, - dest_branch) + ref_spec = '%s:refs/for/%s' % (R_HEADS + branch.name, dest_branch) opts = [] if auto_topic: opts += ['topic=' + branch.name] -- cgit v1.2.3-54-g00ecf