Changeset 211134 in webkit
- Timestamp:
- Jan 24, 2017, 8:25:51 PM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/tool/commands/newcommitbot.py (modified) (2 diffs)
-
Scripts/webkitpy/tool/commands/newcommitbot_unittest.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r211133 r211134 1 2017-01-24 Joseph Pecoraro <pecoraro@apple.com> 2 3 WKR does not include my nick when commit-queue lands my patch 4 https://bugs.webkit.org/show_bug.cgi?id=167388 5 6 Reviewed by Ryosuke Niwa. 7 8 * Scripts/webkitpy/tool/commands/newcommitbot.py: 9 (NewCommitBot._summarize_commit_log): 10 * Scripts/webkitpy/tool/commands/newcommitbot_unittest.py: 11 Perform nickname insertion before grabbing "Patch by" details. 12 This way we can include the nickname with the full name. 13 1 14 2017-01-24 Joseph Pecoraro <pecoraro@apple.com> 2 15 -
trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot.py
r211123 r211134 114 114 @classmethod 115 115 def _summarize_commit_log(self, commit_log, committer_list=CommitterList()): 116 patch_by = self._patch_by_regex.search(commit_log)117 commit_log = self._patch_by_regex.sub('', commit_log, count=1)118 119 rollout = self._rollout_regex.search(commit_log)120 commit_log = self._rollout_regex.sub('', commit_log, count=1)121 122 requested_by = self._requested_by_regex.search(commit_log)123 124 commit_log = self._bugzilla_url_regex.sub(r'https://webkit.org/b/\g<id>', commit_log)125 commit_log = self._trac_url_regex.sub(r'https://trac.webkit.org/r\g<revision>', commit_log)126 127 116 for contributor in committer_list.contributors(): 128 117 if not contributor.irc_nicknames: … … 137 126 commit_log = commit_log.replace(' %s ' % email, ' %s ' % name_with_nick) 138 127 128 patch_by = self._patch_by_regex.search(commit_log) 129 commit_log = self._patch_by_regex.sub('', commit_log, count=1) 130 131 rollout = self._rollout_regex.search(commit_log) 132 commit_log = self._rollout_regex.sub('', commit_log, count=1) 133 134 requested_by = self._requested_by_regex.search(commit_log) 135 136 commit_log = self._bugzilla_url_regex.sub(r'https://webkit.org/b/\g<id>', commit_log) 137 commit_log = self._trac_url_regex.sub(r'https://trac.webkit.org/r\g<revision>', commit_log) 138 139 139 lines = commit_log.split('\n')[1:-2] # Ignore lines with ----------. 140 140 141 141 firstline = re.match(r'^(?P<revision>r\d+) \| (?P<email>[^\|]+) \| (?P<timestamp>[^|]+) \| [^\n]+', lines[0]) 142 142 assert firstline 143 143 144 author = firstline.group('email') 144 145 if patch_by: -
trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot_unittest.py
r211123 r211134 67 67 "https://trac.webkit.org/r140066 by Simon Fraser (smfr)" 68 68 " Allow PaintInfo to carry all PaintBehavior flags https://webkit.org/b/106980 Reviewed by Beth Dakin (dethbakin).") 69 70 self.assertEqual(NewCommitBot._summarize_commit_log("""------------------------------------------------------------------------ 71 r211085 | commit-queue@webkit.org | 2017-01-24 09:01:44 -0800 (Tue, 24 Jan 2017) | 9 lines 72 73 Remove always true openGLMultisamplingEnabled setting 74 https://bugs.webkit.org/show_bug.cgi?id=167364 75 76 Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-01-24 77 Reviewed by Sam Weinig. 78 79 * html/canvas/WebGLRenderingContextBase.cpp: 80 (WebCore::WebGLRenderingContextBase::create): 81 * page/Settings.in: 82 ------------------------------------------------------------------------"""), 83 "https://trac.webkit.org/r211085 by Joseph Pecoraro (JoePeck)" 84 " Remove always true openGLMultisamplingEnabled setting https://webkit.org/b/167364 Reviewed by Sam Weinig (weinig).") 69 85 70 86 def test_summarize_commit_log_rollout(self):
Note:
See TracChangeset
for help on using the changeset viewer.