Title: [165824] trunk/Tools
- Revision
- 165824
- Author
- [email protected]
- Date
- 2014-03-18 11:30:16 -0700 (Tue, 18 Mar 2014)
Log Message
webkit-patch land shouldn't add a reviewer for unreviewed build fixes
https://bugs.webkit.org/show_bug.cgi?id=130220
Patch by Eva Balazsfalvi <[email protected]> on 2014-03-18
Reviewed by Csaba Osztrogonác.
* Scripts/webkitpy/common/checkout/changelog.py:
(ChangeLog.set_reviewer):
* Scripts/webkitpy/common/checkout/changelog_unittest.py:
(test_set_reviewer):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (165823 => 165824)
--- trunk/Tools/ChangeLog 2014-03-18 18:13:44 UTC (rev 165823)
+++ trunk/Tools/ChangeLog 2014-03-18 18:30:16 UTC (rev 165824)
@@ -1,3 +1,15 @@
+2014-03-18 Eva Balazsfalvi <[email protected]>
+
+ webkit-patch land shouldn't add a reviewer for unreviewed build fixes
+ https://bugs.webkit.org/show_bug.cgi?id=130220
+
+ Reviewed by Csaba Osztrogonác.
+
+ * Scripts/webkitpy/common/checkout/changelog.py:
+ (ChangeLog.set_reviewer):
+ * Scripts/webkitpy/common/checkout/changelog_unittest.py:
+ (test_set_reviewer):
+
2014-03-17 Filip Pizlo <[email protected]>
More FTL enabling.
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py (165823 => 165824)
--- trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py 2014-03-18 18:13:44 UTC (rev 165823)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/changelog.py 2014-03-18 18:30:16 UTC (rev 165824)
@@ -406,8 +406,8 @@
latest_entry_contents = latest_entry.contents()
reviewer_text = latest_entry.reviewer()
found_nobody = re.search("NOBODY\s*\(OOPS!\)", latest_entry_contents, re.MULTILINE)
-
- if not found_nobody and not reviewer_text:
+ found_reviewer_or_unreviewed = latest_entry.has_valid_reviewer()
+ if not found_nobody and not found_reviewer_or_unreviewed and not reviewer_text:
bug_url_number_of_items = len(re.findall(config_urls.bug_url_long, latest_entry_contents, re.MULTILINE))
bug_url_number_of_items += len(re.findall(config_urls.bug_url_short, latest_entry_contents, re.MULTILINE))
result = StringIO()
Modified: trunk/Tools/Scripts/webkitpy/common/checkout/changelog_unittest.py (165823 => 165824)
--- trunk/Tools/Scripts/webkitpy/common/checkout/changelog_unittest.py 2014-03-18 18:13:44 UTC (rev 165823)
+++ trunk/Tools/Scripts/webkitpy/common/checkout/changelog_unittest.py 2014-03-18 18:30:16 UTC (rev 165824)
@@ -556,6 +556,16 @@
* Scripts/bugzilla-tool:
'''
+ _new_entry_boilerplate_with_unreviewed = '''2009-08-19 Eric Seidel <[email protected]>
+
+ Need a short description (OOPS!).
+ https://bugs.webkit.org/show_bug.cgi?id=12345
+
+ Unreviewed.
+
+ * Scripts/bugzilla-tool:
+'''
+
_new_entry_boilerplate_with_multiple_bugurl = '''2009-08-19 Eric Seidel <[email protected]>
Need a short description (OOPS!).
@@ -595,6 +605,12 @@
expected_contents = changelog_contents.replace('NOBODY (OOPS!)', reviewer_name)
self.assertEqual(actual_contents.splitlines(), expected_contents.splitlines())
+ changelog_contents = u"%s\n%s" % (self._new_entry_boilerplate_with_unreviewed, self._example_changelog)
+ fs.write_text_file(self._changelog_path, changelog_contents)
+ ChangeLog(self._changelog_path, fs).set_reviewer(reviewer_name)
+ actual_contents = fs.read_text_file(self._changelog_path)
+ self.assertEqual(actual_contents.splitlines(), changelog_contents.splitlines())
+
changelog_contents_without_reviewer_line = u"%s\n%s" % (self._new_entry_boilerplate_without_reviewer_line, self._example_changelog)
fs.write_text_file(self._changelog_path, changelog_contents_without_reviewer_line)
ChangeLog(self._changelog_path, fs).set_reviewer(reviewer_name)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes