Changeset 51259 in webkit


Ignore:
Timestamp:
Nov 20, 2009 2:51:56 PM (14 years ago)
Author:
abarth@webkit.org
Message:

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

Reviewed by Eric Seidel.

Move prepare_clean_working_directory into the LandingSequence
https://bugs.webkit.org/show_bug.cgi?id=31743

  • Scripts/bugzilla-tool:
  • Scripts/modules/landingsequence.py:
Location:
trunk/WebKitTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r51257 r51259  
     12009-11-20  Adam Barth  <abarth@webkit.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        Move prepare_clean_working_directory into the LandingSequence
     6        https://bugs.webkit.org/show_bug.cgi?id=31743
     7
     8        * Scripts/bugzilla-tool:
     9        * Scripts/modules/landingsequence.py:
     10
    1112009-11-20  Yael Aharon  <yael.aharon@nokia.com>
    212
  • trunk/WebKitTools/Scripts/bugzilla-tool

    r51253 r51259  
    191191        ConditionalLandingSequence.__init__(self, patch, options, tool)
    192192
    193     def update(self):
    194         pass
    195 
    196     def apply_patch(self):
    197         pass
    198 
    199     def close_patch(self, commit_log):
    200         self._comment_test = bug_comment_from_commit_text(self._tool.scm(), commit_log)
    201         # There is no patch to close.
    202 
    203     def close_bug(self):
     193    def run(self):
     194        self.build()
     195        self.test()
     196        commit_log = self.commit()
     197        self.close_bug(commit_log)
     198
     199    def close_bug(self, commit_log):
     200        comment_test = bug_comment_from_commit_text(self._tool.scm(), commit_log)
    204201        bug_id = self._patch["bug_id"]
    205202        if bug_id:
    206203            log("Updating bug %s" % bug_id)
    207204            if self._options.close_bug:
    208                 self._tool.bugs.close_bug_as_fixed(bug_id, self._comment_test)
     205                self._tool.bugs.close_bug_as_fixed(bug_id, comment_test)
    209206            else:
    210207                # FIXME: We should a smart way to figure out if the patch is attached
    211208                # to the bug, and if so obsolete it.
    212                 self._tool.bugs.post_comment_to_bug(bug_id, self._comment_test)
     209                self._tool.bugs.post_comment_to_bug(bug_id, comment_test)
    213210        else:
    214             log(self._comment_test)
     211            log(comment_test)
    215212            log("No bug id provided.")
    216213
     
    305302
    306303    def run(self):
     304        self.clean()
    307305        self.update()
    308306        self.apply_patch()
     
    323321        # Check the tree status first so we can fail early.
    324322        WebKitLandingScripts.ensure_builders_are_green(tool.buildbot, options)
    325         WebKitLandingScripts.prepare_clean_working_directory(tool.scm(), options)
    326323
    327324    def _process_patch(self, patch, options, args, tool):
     
    340337        # Check the tree status first so we can fail early.
    341338        WebKitLandingScripts.ensure_builders_are_green(tool.buildbot, options)
    342         WebKitLandingScripts.prepare_clean_working_directory(tool.scm(), options)
    343339
    344340    def _process_patch(self, patch, options, args, tool):
    345341        sequence = ConditionalLandingSequence(patch, options, tool)
    346342        sequence.run_and_handle_errors()
     343
    347344
    348345class LandAttachment(AbstractPatchLandingCommand):
  • trunk/WebKitTools/Scripts/modules/landingsequence.py

    r51253 r51259  
    4444
    4545    def run(self):
     46        self.clean()
    4647        self.update()
    4748        self.apply_patch()
     
    6667                self._tool.bugs.reject_patch_from_commit_queue(self._patch["id"], e.message_with_output())
    6768            WorkQueue.exit_after_handled_error(e)
     69
     70    def clean(self):
     71        WebKitLandingScripts.prepare_clean_working_directory(self._tool.scm(), self._options)
    6872
    6973    def update(self):
Note: See TracChangeset for help on using the changeset viewer.