Changeset 51434 in webkit


Ignore:
Timestamp:
Nov 26, 2009 11:56:24 PM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

[bzt] Kill WebKitLandingScripts
https://bugs.webkit.org/show_bug.cgi?id=31904

Step 4: Kill run_webkit_script.

  • Scripts/modules/buildsteps.py:
  • Scripts/modules/commands/download.py:
  • Scripts/modules/webkitlandingscripts.py:
Location:
trunk/WebKitTools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51433 r51434  
     12009-11-26  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [bzt] Kill WebKitLandingScripts
     6        https://bugs.webkit.org/show_bug.cgi?id=31904
     7
     8        Step 4: Kill run_webkit_script.
     9
     10        * Scripts/modules/buildsteps.py:
     11        * Scripts/modules/commands/download.py:
     12        * Scripts/modules/webkitlandingscripts.py:
     13
    1142009-11-26  Adam Barth  <abarth@webkit.org>
    215
  • trunk/WebKitTools/Scripts/modules/buildsteps.py

    r51433 r51434  
    2929import os
    3030
    31 from modules.logging import error
     31from modules.logging import log, error
    3232from modules.webkitlandingscripts import WebKitLandingScripts
    3333from modules.webkitport import WebKitPort
    3434
    3535class BuildSteps:
     36    def _run_script(cls, script_name, quiet=False, port=WebKitPort):
     37        log("Running %s" % script_name)
     38        WebKitLandingScripts.run_and_throw_if_fail(port.script_path(script_name), quiet)
     39
     40    def prepare_changelog(self):
     41        self.run_script("prepare-ChangeLog")
     42
    3643    def clean_working_directory(self, scm, options, allow_local_commits=False):
    3744        os.chdir(scm.checkout_root)
     
    5966        log("Building WebKit")
    6067        WebKitLandingScripts.run_and_throw_if_fail(port.build_webkit_command(), quiet)
     68
     69    def check_style(self):
     70        self._run_script("check-webkit-style")
     71
  • trunk/WebKitTools/Scripts/modules/commands/download.py

    r51432 r51434  
    255255    def build(self):
    256256        # Instead of building, we check style.
    257         WebKitLandingScripts.run_webkit_script("check-webkit-style")
     257        self._tool.steps.check_style()
    258258
    259259
     
    360360
    361361    @staticmethod
    362     def _create_changelogs_for_revert(scm, revision):
     362    def _create_changelogs_for_revert(tool, revision):
    363363        # First, discard the ChangeLog changes from the rollout.
    364         changelog_paths = scm.modified_changelogs()
    365         scm.revert_files(changelog_paths)
     364        changelog_paths = tool.scm().modified_changelogs()
     365        tool.scm().revert_files(changelog_paths)
    366366
    367367        # Second, make new ChangeLog entries for this rollout.
    368368        # This could move to prepare-ChangeLog by adding a --revert= option.
    369         WebKitLandingScripts.run_webkit_script("prepare-ChangeLog")
     369        tool.steps.prepare_changelog()
    370370        for changelog_path in changelog_paths:
    371371            ChangeLog(changelog_path).update_for_revert(revision)
     
    396396        tool.scm().update_webkit()
    397397        tool.scm().apply_reverse_diff(revision)
    398         self._create_changelogs_for_revert(tool.scm(), revision)
     398        self._create_changelogs_for_revert(tool, revision)
    399399
    400400        # FIXME: Fully automated rollout is not 100% idiot-proof yet, so for now just log with instructions on how to complete the rollout.
  • trunk/WebKitTools/Scripts/modules/webkitlandingscripts.py

    r51433 r51434  
    114114            raise ScriptError(script_args=args, exit_code=exit_code, output=child_output)
    115115
    116     @classmethod
    117     def run_webkit_script(cls, script_name, quiet=False, port=WebKitPort):
    118         log("Running %s" % script_name)
    119         cls.run_and_throw_if_fail(port.script_path(script_name), quiet)
    120116
    121117
    122 
    123 
Note: See TracChangeset for help on using the changeset viewer.