Bug 26740

Summary: bugzilla-tool post-diff needs to obsolete old patches before posting
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: levin
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
patch
none
patch jmalonzo: review+

Eric Seidel (no email)
Reported 2009-06-25 16:44:49 PDT
bugzilla-tool post-diff needs to obsolete old patches before posting I've also added a --no-obsolete to disable this behavior. I also finally updated the bug page parsing to use XML. Thanks bdash! :) So sad I wrote all that html parsing code in the first place. :(
Attachments
patch (8.65 KB, patch)
2009-06-25 16:45 PDT, Eric Seidel (no email)
no flags
patch (8.94 KB, patch)
2009-06-25 16:46 PDT, Eric Seidel (no email)
jmalonzo: review+
Eric Seidel (no email)
Comment 1 2009-06-25 16:45:08 PDT
Eric Seidel (no email)
Comment 2 2009-06-25 16:46:27 PDT
Jan Alonzo
Comment 3 2009-06-25 19:06:58 PDT
Comment on attachment 31890 [details] patch > + log("Obsoleteting %s on bug %s" % (pluralize('old patch', len(patches)), bug_id)) Obsoleting :) > - > - if str(review_status).find("review+") != -1: > - reviewer = review_status.contents[0].split(':')[0] # name:\n review+\n > - reviewer_full_name = self.full_name_from_bugzilla_name(reviewer) > - attachment['reviewer'] = reviewer_full_name > + attachment['is_obsolete'] = (element.has_key('isobsolete') and element['isobsolete'] == "1") > + attachment['is_patch'] = (element.has_key('ispatch') and element['ispatch'] == "1") I think without '== "1"' should be fine as well. r=me.
Eric Seidel (no email)
Comment 4 2009-06-26 01:28:05 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKitTools/ChangeLog M WebKitTools/Scripts/bugzilla-tool M WebKitTools/Scripts/modules/bugzilla.py Committed r45249 http://trac.webkit.org/changeset/45249
Note You need to log in before you can comment on or make changes to this bug.