From 3f39a15715c2518ea9fd85dfc0d95b78db45e37b Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Tue, 24 Feb 2015 12:07:20 -0500 Subject: 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 --- git-bz | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit