diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2015-02-24 12:07:20 -0500 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2015-02-24 12:10:40 -0500 |
commit | 3f39a15715c2518ea9fd85dfc0d95b78db45e37b (patch) | |
tree | 331035b960dcf51ff41c00197e27cbfcce442539 | |
parent | 303e63f309865cda8856c325c9a602c9283a7c81 (diff) | |
download | git-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-x | git-bz | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |