Changeset 51244 in webkit
- Timestamp:
- Nov 20, 2009 11:06:02 AM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51243 r51244 1 2009-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 1 13 2009-11-20 Adam Barth <abarth@webkit.org> 2 14 -
trunk/WebKitTools/Scripts/bugzilla-tool
r51243 r51244 633 633 634 634 class AbstractQueue(Command, WorkQueueDelegate): 635 def __init__(self, name): 636 self._name = name 635 def __init__(self): 637 636 options = [ 638 637 make_option("--no-confirm", action="store_false", dest="confirm", default=True, help="Do not ask the user for confirmation before running the queue. Dangerous!"), 639 638 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."), 640 639 ] 641 Command.__init__(self, "Run the %s." % self. _name, options=options)640 Command.__init__(self, "Run the %s." % self.name, options=options) 642 641 643 642 def queue_log_path(self): 644 return "%s.log" % self. _name643 return "%s.log" % self.name 645 644 646 645 def work_logs_directory(self): 647 return "%s-logs" % self. _name646 return "%s-logs" % self.name 648 647 649 648 def status_host(self): … … 651 650 652 651 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)) 654 653 if self.options.confirm: 655 654 response = raw_input("Are you sure? Type \"yes\" to continue: ") 656 655 if (response != "yes"): 657 656 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))) 659 658 660 659 def should_continue_work_queue(self): … … 680 679 681 680 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))) 683 682 684 683 def execute(self, options, args, tool): … … 690 689 691 690 class CommitQueue(AbstractQueue): 692 def __init__(self): 693 AbstractQueue.__init__(self, "commit-queue") 691 name = "commit-queue" 692 def __init__(self): 693 AbstractQueue.__init__(self) 694 694 695 695 def begin_work_queue(self): … … 719 719 720 720 class StyleQueue(AbstractQueue): 721 def __init__(self): 722 AbstractQueue.__init__(self, "style-queue") 721 name = "style-queue" 722 def __init__(self): 723 AbstractQueue.__init__(self) 723 724 724 725 def status_host(self):
Note: See TracChangeset
for help on using the changeset viewer.