summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2015-02-24 12:07:20 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2015-02-24 12:10:40 -0500
commit3f39a15715c2518ea9fd85dfc0d95b78db45e37b (patch)
tree331035b960dcf51ff41c00197e27cbfcce442539
parent303e63f309865cda8856c325c9a602c9283a7c81 (diff)
downloadgit-bz-3f39a15715c2518ea9fd85dfc0d95b78db45e37b.tar.gz
Set patch attachment status on creation for bugzilla.gnome.org
bugzilla.gnome.org now supports attachment status on attachment.cgi?action=insert. https://bugzilla.gnome.org/show_bug.cgi?id=745062
-rwxr-xr-xgit-bz4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-bz b/git-bz
index 666e8f4..031c62f 100755
--- a/git-bz
+++ b/git-bz
@@ -1250,9 +1250,6 @@ class Bug(object):
print self.get_url()
def create_patch(self, description, comment, filename, data, obsoletes=[], status='none'):
- # FIXME: Currently there is no way to set status on creation for bugzilla.gnome.org
- # (and other bugzilla instances don't support patch status)
-
# Bugzilla 4.2+ requires you to grab a fresh token from attachment.cgi.
url = "/attachment.cgi?bugid=" + str(self.id) + "&action=enter"
@@ -1273,6 +1270,7 @@ class Bug(object):
if token is not None:
fields['token'] = token.group(1)
fields['ispatch'] = '1'
+ fields['gnome_attachment_status'] = status
fields['description'] = description
if comment:
fields['comment'] = comment