summaryrefslogtreecommitdiffstats
path: root/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'project.py')
-rw-r--r--project.py10
1 files changed, 1 insertions, 9 deletions
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):
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]