Changeset 51434 in webkit
- Timestamp:
- Nov 26, 2009 11:56:24 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r51433 r51434 1 2009-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 1 14 2009-11-26 Adam Barth <abarth@webkit.org> 2 15 -
trunk/WebKitTools/Scripts/modules/buildsteps.py
r51433 r51434 29 29 import os 30 30 31 from modules.logging import error31 from modules.logging import log, error 32 32 from modules.webkitlandingscripts import WebKitLandingScripts 33 33 from modules.webkitport import WebKitPort 34 34 35 35 class 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 36 43 def clean_working_directory(self, scm, options, allow_local_commits=False): 37 44 os.chdir(scm.checkout_root) … … 59 66 log("Building WebKit") 60 67 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 255 255 def build(self): 256 256 # Instead of building, we check style. 257 WebKitLandingScripts.run_webkit_script("check-webkit-style")257 self._tool.steps.check_style() 258 258 259 259 … … 360 360 361 361 @staticmethod 362 def _create_changelogs_for_revert( scm, revision):362 def _create_changelogs_for_revert(tool, revision): 363 363 # 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) 366 366 367 367 # Second, make new ChangeLog entries for this rollout. 368 368 # This could move to prepare-ChangeLog by adding a --revert= option. 369 WebKitLandingScripts.run_webkit_script("prepare-ChangeLog")369 tool.steps.prepare_changelog() 370 370 for changelog_path in changelog_paths: 371 371 ChangeLog(changelog_path).update_for_revert(revision) … … 396 396 tool.scm().update_webkit() 397 397 tool.scm().apply_reverse_diff(revision) 398 self._create_changelogs_for_revert(tool .scm(), revision)398 self._create_changelogs_for_revert(tool, revision) 399 399 400 400 # 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 114 114 raise ScriptError(script_args=args, exit_code=exit_code, output=child_output) 115 115 116 @classmethod117 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)120 116 121 117 122 123
Note: See TracChangeset
for help on using the changeset viewer.