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

Changeset 211134 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 8:25:51 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

WKR does not include my nick when commit-queue lands my patch
https://bugs.webkit.org/show_bug.cgi?id=167388

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2017-01-24
Reviewed by Ryosuke Niwa.

  • Scripts/webkitpy/tool/commands/newcommitbot.py:

(NewCommitBot._summarize_commit_log):

  • Scripts/webkitpy/tool/commands/newcommitbot_unittest.py:

Perform nickname insertion before grabbing "Patch by" details.
This way we can include the nickname with the full name.

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r211133 r211134  
     12017-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
    1142017-01-24  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot.py

    r211123 r211134  
    114114    @classmethod
    115115    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 
    127116        for contributor in committer_list.contributors():
    128117            if not contributor.irc_nicknames:
     
    137126                    commit_log = commit_log.replace(' %s ' % email, ' %s ' % name_with_nick)
    138127
     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
    139139        lines = commit_log.split('\n')[1:-2]  # Ignore lines with ----------.
    140140
    141141        firstline = re.match(r'^(?P<revision>r\d+) \| (?P<email>[^\|]+) \| (?P<timestamp>[^|]+) \| [^\n]+', lines[0])
    142142        assert firstline
     143
    143144        author = firstline.group('email')
    144145        if patch_by:
  • trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot_unittest.py

    r211123 r211134  
    6767            "https://trac.webkit.org/r140066 by Simon Fraser (smfr)"
    6868            " 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("""------------------------------------------------------------------------
     71r211085 | commit-queue@webkit.org | 2017-01-24 09:01:44 -0800 (Tue, 24 Jan 2017) | 9 lines
     72
     73Remove always true openGLMultisamplingEnabled setting
     74https://bugs.webkit.org/show_bug.cgi?id=167364
     75
     76Patch by Joseph Pecoraro <pecoraro@apple.com> on 2017-01-24
     77Reviewed 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).")
    6985
    7086    def test_summarize_commit_log_rollout(self):
Note: See TracChangeset for help on using the changeset viewer.