Changeset 211123 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 4:55:10 PM (9 years ago)
Author:
Michael Catanzaro
Message:

WKR should not confuse Miguel Gomez with Andres Gomez
https://bugs.webkit.org/show_bug.cgi?id=167389

Reviewed by Lucas Forschler.

Andres's email is a substring of Miguel's, causing WKR to credit Miguel's commits to
"mAndres Gomez". Fix this.

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

(NewCommitBot._summarize_commit_log): Be stricter about matching emails. SVN logs include a
space on each side of the email address, so expect both spaces to be there before
considering the email for replacement.

  • Scripts/webkitpy/tool/commands/newcommitbot_unittest.py: Add a test.
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r211097 r211123  
     12017-01-24  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        WKR should not confuse Miguel Gomez with Andres Gomez
     4        https://bugs.webkit.org/show_bug.cgi?id=167389
     5
     6        Reviewed by Lucas Forschler.
     7
     8        Andres's email is a substring of Miguel's, causing WKR to credit Miguel's commits to
     9        "mAndres Gomez". Fix this.
     10
     11        * Scripts/webkitpy/tool/commands/newcommitbot.py:
     12        (NewCommitBot._summarize_commit_log): Be stricter about matching emails. SVN logs include a
     13        space on each side of the email address, so expect both spaces to be there before
     14        considering the email for replacement.
     15        * Scripts/webkitpy/tool/commands/newcommitbot_unittest.py: Add a test.
     16
    1172017-01-24  Matt Rajca  <mrajca@apple.com>
    218
  • trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot.py

    r187501 r211123  
    135135            else:
    136136                for email in contributor.emails:
    137                     commit_log = commit_log.replace(email, name_with_nick)
     137                    commit_log = commit_log.replace(' %s ' % email, ' %s ' % name_with_nick)
    138138
    139139        lines = commit_log.split('\n')[1:-2]  # Ignore lines with ----------.
  • trunk/Tools/Scripts/webkitpy/tool/commands/newcommitbot_unittest.py

    r174136 r211123  
    128128            "Vsevolod Vlasov (vsevik) rolled out r134927 and r134944 in https://trac.webkit.org/r135487 :"
    129129            " Reverting the reverts after merging.")
     130
     131    # Miguel <magomez@igalia.com> is not to be confused with Andres <agomez@igalia.com>.
     132    def test_email_substring_problem(self):
     133        self.assertEqual(NewCommitBot._summarize_commit_log("""------------------------------------------------------------------------
     134r211084 | magomez@igalia.com | 2017-01-24 10:25:31 -0600 (Tue, 24 Jan 2017) | 13 lines
     135
     136[GTK] Do not paint non composited content into the window when using the threaded compositor
     137https://bugs.webkit.org/show_bug.cgi?id=167367
     138
     139Reviewed by Carlos Garcia Campos.
     140
     141When using the threaded compositor we need to send the non composited content for compositing as well,
     142not painting it directly into the window.
     143
     144No new tests.
     145
     146* rendering/RenderLayerBacking.cpp:
     147(WebCore::RenderLayerBacking::paintsIntoWindow):
     148
     149------------------------------------------------------------------------"""),
     150            "https://trac.webkit.org/r211084 by Miguel Gomez (magomez) [GTK] Do not paint non composited content into the window when using the threaded compositor"
     151            " https://webkit.org/b/167367 Reviewed by Carlos Garcia Campos (KaL).")
Note: See TracChangeset for help on using the changeset viewer.