Changeset 51027 in webkit


Ignore:
Timestamp:
Nov 16, 2009 3:54:21 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-16 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Implement PatchCollection
https://bugs.webkit.org/show_bug.cgi?id=31541

This class holds a set of patches and lets clients iterate through
them. Optionally, clients can install a filter.

  • Scripts/modules/patchcollection.py: Added.
  • Scripts/modules/patchcollection_unittest.py: Added.
  • Scripts/run-webkit-unittests:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51026 r51027  
    1212        * Scripts/modules/patchcollection_unittest.py: Added.
    1313        * Scripts/run-webkit-unittests:
     14
     152009-11-16  Eric Seidel  <eric@webkit.org>
     16
     17        Reviewed by Adam Barth.
     18
     19        bugzilla-tool land-patches will close bugs with patches r=?
     20        https://bugs.webkit.org/show_bug.cgi?id=28230
     21
     22        The commit-queue shouldn't close patches with outstanding reviews on them,
     23        even if many reviewers seem to be against multi-patch bugs.
     24
     25        * Scripts/bugzilla-tool:
    1426
    15272009-11-16  Eric Seidel  <eric@webkit.org>
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r51025 r51027  
    378378    @classmethod
    379379    def _close_bug_if_no_active_patches(cls, bugs, bug_id):
    380         # This should check to make sure there are no r? or r+ patches on the bug before closing.
    381         # https://bugs.webkit.org/show_bug.cgi?id=28230
     380        # Check to make sure there are no r? or r+ patches on the bug before closing.
     381        # Assume that r- patches are just previous patches someone forgot to obsolete.
     382        patches = bugs.fetch_patches_from_bug(bug_id)
     383        for patch in patches:
     384            review_flag = patch.get('review')
     385            if review_flag == '?' or review_flag == '+':
     386                log("Not closing bug %s as attachment %s has review=%s.  Assuming there are more patches to land from this bug." % (patch['bug_id'], patch['id'], review_flag))
     387                return
    382388        bugs.close_bug_as_fixed(bug_id, "All reviewed patches have been landed.  Closing bug.")
    383389
Note: See TracChangeset for help on using the changeset viewer.