Changeset 51020 in webkit


Ignore:
Timestamp:
Nov 16, 2009 2:45:32 AM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

Fix silly copy-and-paste code. I am a terrible coder.

  • Scripts/modules/bugzilla.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51019 r51020  
     12009-11-16  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Fix silly copy-and-paste code.  I am a terrible coder.
     6
     7        * Scripts/modules/bugzilla.py:
     8
    192009-11-16  Adam Barth  <abarth@webkit.org>
    210
  • trunk/WebKitTools/Scripts/modules/bugzilla.py

    r51019 r51020  
    284284        return commit_queue_patches
    285285
    286     def fetch_bug_ids_from_commit_queue(self):
    287         commit_queue_url = self.bug_server_url + "buglist.cgi?query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=flagtypes.name&type0-0-0=equals&value0-0-0=commit-queue%2B"
    288 
    289         page = urllib2.urlopen(commit_queue_url)
     286    def _fetch_bug_ids_advanced_query(self, query):
     287        page = urllib2.urlopen(query)
    290288        soup = BeautifulSoup(page)
    291289
     
    297295
    298296        return bug_ids
     297
     298    def fetch_bug_ids_from_commit_queue(self):
     299        commit_queue_url = self.bug_server_url + "buglist.cgi?query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=flagtypes.name&type0-0-0=equals&value0-0-0=commit-queue%2B"
     300        return self._fetch_bug_ids_advanced_query(commit_queue_url)
     301
     302    def fetch_bug_ids_from_review_queue(self):
     303        review_queue_url = self.bug_server_url + "buglist.cgi?query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=flagtypes.name&type0-0-0=equals&value0-0-0=review?"
     304        return self._fetch_bug_ids_advanced_query(review_queue_url)
    299305
    300306    def fetch_patches_from_commit_queue(self, reject_invalid_patches=False):
     
    304310            patches_to_land += patches
    305311        return patches_to_land
    306 
    307     def fetch_bug_ids_from_review_queue(self):
    308         review_queue_url = self.bug_server_url + "buglist.cgi?query_format=advanced&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&field0-0-0=flagtypes.name&type0-0-0=equals&value0-0-0=review?"
    309 
    310         page = urllib2.urlopen(review_queue_url)
    311         soup = BeautifulSoup(page)
    312 
    313         bug_ids = []
    314         # Grab the cells in the first column (which happens to be the bug ids)
    315         for bug_link_cell in soup('td', "first-child"): # tds with the class "first-child"
    316             bug_link = bug_link_cell.find("a")
    317             bug_ids.append(bug_link.string) # the contents happen to be the bug id
    318 
    319         return bug_ids
    320312
    321313    def fetch_patches_from_review_queue(self, limit):
Note: See TracChangeset for help on using the changeset viewer.