Changeset 51244 in webkit


Ignore:
Timestamp:
Nov 20, 2009 11:06:02 AM (14 years ago)
Author:
eric@webkit.org
Message:

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

Reviewed by Eric Seidel.

Make commit-queue and style-queue show up in help
https://bugs.webkit.org/show_bug.cgi?id=31724

We need to store their names on their class to make these commands
properly register themselves with MultiCommandTool.

  • Scripts/bugzilla-tool:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51243 r51244  
     12009-11-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Make commit-queue and style-queue show up in help
     6        https://bugs.webkit.org/show_bug.cgi?id=31724
     7
     8        We need to store their names on their class to make these commands
     9        properly register themselves with MultiCommandTool.
     10
     11        * Scripts/bugzilla-tool:
     12
    1132009-11-20  Adam Barth  <abarth@webkit.org>
    214
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r51243 r51244  
    633633
    634634class AbstractQueue(Command, WorkQueueDelegate):
    635     def __init__(self, name):
    636         self._name = name
     635    def __init__(self):
    637636        options = [
    638637            make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue.  Dangerous!"),
    639638            make_option("--status-host", action="store", type="string", dest="status_host", default=StatusBot.default_host, help="Hostname (e.g. localhost or commit.webkit.org) where status updates should be posted."),
    640639        ]
    641         Command.__init__(self, "Run the %s." % self._name, options=options)
     640        Command.__init__(self, "Run the %s." % self.name, options=options)
    642641
    643642    def queue_log_path(self):
    644         return "%s.log" % self._name
     643        return "%s.log" % self.name
    645644
    646645    def work_logs_directory(self):
    647         return "%s-logs" % self._name
     646        return "%s-logs" % self.name
    648647
    649648    def status_host(self):
     
    651650
    652651    def begin_work_queue(self):
    653         log("CAUTION: %s will discard all local changes in %s" % (self._name, self.tool.scm().checkout_root))
     652        log("CAUTION: %s will discard all local changes in %s" % (self.name, self.tool.scm().checkout_root))
    654653        if self.options.confirm:
    655654            response = raw_input("Are you sure?  Type \"yes\" to continue: ")
    656655            if (response != "yes"):
    657656                error("User declined.")
    658         log("Running WebKit %s. %s" % (self._name, datetime.now().strftime(WorkQueue.log_date_format)))
     657        log("Running WebKit %s. %s" % (self.name, datetime.now().strftime(WorkQueue.log_date_format)))
    659658
    660659    def should_continue_work_queue(self):
     
    680679
    681680    def log_progress(self, patch_ids):
    682         log("%s in %s [%s]" % (pluralize("patch", len(patch_ids)), self._name, ", ".join(patch_ids)))
     681        log("%s in %s [%s]" % (pluralize("patch", len(patch_ids)), self.name, ", ".join(patch_ids)))
    683682
    684683    def execute(self, options, args, tool):
     
    690689
    691690class CommitQueue(AbstractQueue):
    692     def __init__(self):
    693         AbstractQueue.__init__(self, "commit-queue")
     691    name = "commit-queue"
     692    def __init__(self):
     693        AbstractQueue.__init__(self)
    694694
    695695    def begin_work_queue(self):
     
    719719
    720720class StyleQueue(AbstractQueue):
    721     def __init__(self):
    722         AbstractQueue.__init__(self, "style-queue")
     721    name = "style-queue"
     722    def __init__(self):
     723        AbstractQueue.__init__(self)
    723724
    724725    def status_host(self):
Note: See TracChangeset for help on using the changeset viewer.