Skip to content

Commit

Permalink
mark patches as such when attaching them in Bugzilla
Browse files Browse the repository at this point in the history
When a Bugzilla attachment is flagged as a patch, Bugzilla
enables some extra UI features like diff display.
  • Loading branch information
danc86 committed Jun 11, 2015
1 parent 3fef009 commit e2a682e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hotness/bz.py
Expand Up @@ -122,7 +122,8 @@ def follow_up(self, text, bug):


def attach_patch(self, filename, description, bug): def attach_patch(self, filename, description, bug):
self.log.debug("Attaching patch to bug %r" % bug.bug_id) self.log.debug("Attaching patch to bug %r" % bug.bug_id)
self.bugzilla.attachfile(bug.bug_id, filename, description) self.bugzilla.attachfile(bug.bug_id, filename, description,
is_patch=True)
self.log.info("Attached patch to bug: %s" % bug.weburl) self.log.info("Attached patch to bug: %s" % bug.weburl)


def exact_bug(self, **package): def exact_bug(self, **package):
Expand Down

0 comments on commit e2a682e

Please sign in to comment.