⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 90239 in webkit


Ignore:
Timestamp:
Jul 1, 2011, 9:54:26 AM (15 years ago)
Author:
Adam Roben
Message:

Teach webkitpy about the new format of our ChangeLog template

r90229 moved the "Need a short description and bug URL" line to the top of the ChangeLog
template. But webkitpy didn't know this, so the various rollout-related commands were
leaving that line in the ChangeLog.

Fixes <http://webkit.org/b/63815> REGRESSION (r90229): webkit-patch rollout and sheriffbot
rollout are broken

Reviewed by Dan Bates.

  • Scripts/webkitpy/common/checkout/changelog.py:

(ChangeLog.update_with_unreviewed_message): Changed to look for the "Need a short
description and bug URL" line instead of the "Reviewed by" line as the first line of the
ChangeLog template.

  • Scripts/webkitpy/common/checkout/changelog_unittest.py:

(ChangeLogTest): Updated _new_entry_boilerplate to match what prepare-ChangeLog now
generates.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r90230 r90239  
     12011-07-01  Adam Roben  <aroben@apple.com>
     2
     3        Teach webkitpy about the new format of our ChangeLog template
     4
     5        r90229 moved the "Need a short description and bug URL" line to the top of the ChangeLog
     6        template. But webkitpy didn't know this, so the various rollout-related commands were
     7        leaving that line in the ChangeLog.
     8
     9        Fixes <http://webkit.org/b/63815> REGRESSION (r90229): webkit-patch rollout and sheriffbot
     10        rollout are broken
     11
     12        Reviewed by Dan Bates.
     13
     14        * Scripts/webkitpy/common/checkout/changelog.py:
     15        (ChangeLog.update_with_unreviewed_message): Changed to look for the "Need a short
     16        description and bug URL" line instead of the "Reviewed by" line as the first line of the
     17        ChangeLog template.
     18
     19        * Scripts/webkitpy/common/checkout/changelog_unittest.py:
     20        (ChangeLogTest): Updated _new_entry_boilerplate to match what prepare-ChangeLog now
     21        generates.
     22
    1232011-07-01  Adam Roben  <aroben@apple.com>
    224
  • trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py

    r85727 r90239  
    180180
    181181    def update_with_unreviewed_message(self, message):
    182         reviewed_by_regexp = re.compile(
    183                 "%sReviewed by NOBODY \(OOPS!\)\." % self._changelog_indent)
     182        first_boilerplate_line_regexp = re.compile(
     183                "%sNeed a short description and bug URL \(OOPS!\)" % self._changelog_indent)
    184184        removing_boilerplate = False
    185185        # inplace=1 creates a backup file and re-directs stdout to the file
    186186        for line in fileinput.FileInput(self.path, inplace=1):
    187             if reviewed_by_regexp.search(line):
     187            if first_boilerplate_line_regexp.search(line):
    188188                message_lines = self._wrap_lines(message)
    189                 print reviewed_by_regexp.sub(message_lines, line),
    190                 # Remove all the ChangeLog boilerplate between the Reviewed by
    191                 # line and the first changed file.
     189                print first_boilerplate_line_regexp.sub(message_lines, line),
     190                # Remove all the ChangeLog boilerplate before the first changed
     191                # file.
    192192                removing_boilerplate = True
    193193            elif removing_boilerplate:
  • trunk/Tools/Scripts/webkitpy/common/checkout/changelog_unittest.py

    r90083 r90239  
    184184            return file.read()
    185185
     186    # FIXME: We really should be getting this from prepare-ChangeLog itself.
    186187    _new_entry_boilerplate = '''2009-08-19  Eric Seidel  <eric@webkit.org>
    187188
     189        Need a short description and bug URL (OOPS!)
     190
    188191        Reviewed by NOBODY (OOPS!).
    189 
    190         Need a short description and bug URL (OOPS!)
    191192
    192193        * Scripts/bugzilla-tool:
Note: See TracChangeset for help on using the changeset viewer.