Changeset 51729 in webkit


Ignore:
Timestamp:
Dec 5, 2009 1:54:39 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2009-12-05 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.

Move update-webkit into BuildSteps
https://bugs.webkit.org/show_bug.cgi?id=32181

We need to move update-webkit out of SCM.py because SCM isn't supposed to know
that WebKit exists. The proper place for the knowledge of the existence of
update-webkit is in WebKitPort because some ports have specialized update
scripts (analogous to build-webkit).

  • Scripts/modules/buildsteps.py:
  • Scripts/modules/commands/download.py:
  • Scripts/modules/landingsequence.py:
  • Scripts/modules/scm.py:
  • Scripts/modules/webkitport.py:
Location:
trunk/WebKitTools
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51728 r51729  
     12009-12-05  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Move update-webkit into BuildSteps
     6        https://bugs.webkit.org/show_bug.cgi?id=32181
     7
     8        We need to move update-webkit out of SCM.py because SCM isn't supposed to know
     9        that WebKit exists.  The proper place for the knowledge of the existence of
     10        update-webkit is in WebKitPort because some ports have specialized update
     11        scripts (analogous to build-webkit).
     12
     13        * Scripts/modules/buildsteps.py:
     14        * Scripts/modules/commands/download.py:
     15        * Scripts/modules/landingsequence.py:
     16        * Scripts/modules/scm.py:
     17        * Scripts/modules/webkitport.py:
     18
    1192009-12-05  Adam Barth  <abarth@webkit.org>
    220
  • trunk/WebKitTools/Scripts/modules/buildsteps.py

    r51593 r51729  
    7777            scm.ensure_clean_working_directory(force_clean=options.force_clean)
    7878
     79    def update(self, port=WebKitPort):
     80        log("Updating working directory")
     81        run_and_throw_if_fail(port.update_webkit_command())
     82
    7983    def run_tests(self, launch_safari, fail_fast=False, quiet=False, port=WebKitPort):
    8084        args = port.run_webkit_tests_command()
  • trunk/WebKitTools/Scripts/modules/commands/download.py

    r51596 r51729  
    110110        tool.steps.clean_working_directory(tool.scm(), options, allow_local_commits=True)
    111111        if options.update:
    112             tool.scm().update_webkit()
     112            tool.steps.update()
    113113
    114114    @staticmethod
     
    387387
    388388        tool.steps.clean_working_directory(tool.scm(), options)
    389         tool.scm().update_webkit()
     389        tool.steps.update()
    390390        tool.scm().apply_reverse_diff(revision)
    391391        self._create_changelogs_for_revert(tool, revision)
  • trunk/WebKitTools/Scripts/modules/landingsequence.py

    r51596 r51729  
    7878
    7979    def update(self):
    80         self._tool.scm().update_webkit()
     80        self._tool.steps.update()
    8181
    8282    def apply_patch(self):
  • trunk/WebKitTools/Scripts/modules/scm.py

    r51462 r51729  
    252252        raise NotImplementedError, "subclasses must implement"
    253253
    254     def update_webkit(self):
    255         raise NotImplementedError, "subclasses must implement"
    256 
    257254    def status_command(self):
    258255        raise NotImplementedError, "subclasses must implement"
     
    363360        self.run_command(['svn', 'revert', '-R', '.'])
    364361
    365     def update_webkit(self):
    366         self.run_command(self.script_path("update-webkit"))
    367 
    368362    def status_command(self):
    369363        return ['svn', 'status']
     
    458452        if self.rebase_in_progress():
    459453            self.run_command(['git', 'rebase', '--abort'])
    460 
    461     def update_webkit(self):
    462         # FIXME: Call update-webkit once https://bugs.webkit.org/show_bug.cgi?id=27162 is fixed.
    463         log("Updating working directory")
    464         self.run_command(['git', 'svn', 'rebase'])
    465454
    466455    def status_command(self):
  • trunk/WebKitTools/Scripts/modules/webkitport.py

    r51253 r51729  
    6363
    6464    @classmethod
    65     def run_webkit_tests_command(cls):
    66         return [cls.script_path("run-webkit-tests")]
     65    def update_webkit_command(cls):
     66        return [cls.script_path("update-webkit")]
    6767
    6868    @classmethod
    6969    def build_webkit_command(cls):
    7070        return [cls.script_path("build-webkit")]
     71
     72    @classmethod
     73    def run_webkit_tests_command(cls):
     74        return [cls.script_path("run-webkit-tests")]
    7175
    7276
Note: See TracChangeset for help on using the changeset viewer.