Changeset 90239 in webkit
- Timestamp:
- Jul 1, 2011, 9:54:26 AM (15 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/common/checkout/changelog.py (modified) (1 diff)
-
Scripts/webkitpy/common/checkout/changelog_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r90230 r90239 1 2011-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 1 23 2011-07-01 Adam Roben <aroben@apple.com> 2 24 -
trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py
r85727 r90239 180 180 181 181 def update_with_unreviewed_message(self, message): 182 reviewed_by_regexp = re.compile(183 "%s Reviewed 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) 184 184 removing_boilerplate = False 185 185 # inplace=1 creates a backup file and re-directs stdout to the file 186 186 for line in fileinput.FileInput(self.path, inplace=1): 187 if reviewed_by_regexp.search(line):187 if first_boilerplate_line_regexp.search(line): 188 188 message_lines = self._wrap_lines(message) 189 print reviewed_by_regexp.sub(message_lines, line),190 # Remove all the ChangeLog boilerplate be tween the Reviewed by191 # line and the first changedfile.189 print first_boilerplate_line_regexp.sub(message_lines, line), 190 # Remove all the ChangeLog boilerplate before the first changed 191 # file. 192 192 removing_boilerplate = True 193 193 elif removing_boilerplate: -
trunk/Tools/Scripts/webkitpy/common/checkout/changelog_unittest.py
r90083 r90239 184 184 return file.read() 185 185 186 # FIXME: We really should be getting this from prepare-ChangeLog itself. 186 187 _new_entry_boilerplate = '''2009-08-19 Eric Seidel <eric@webkit.org> 187 188 189 Need a short description and bug URL (OOPS!) 190 188 191 Reviewed by NOBODY (OOPS!). 189 190 Need a short description and bug URL (OOPS!)191 192 192 193 * Scripts/bugzilla-tool:
Note:
See TracChangeset
for help on using the changeset viewer.