Changeset 267096 in webkit


Ignore:
Timestamp:
Sep 15, 2020 1:04:00 PM (4 years ago)
Author:
Jonathan Bedard
Message:

[webkitscmpy] Add Contributor object
https://bugs.webkit.org/show_bug.cgi?id=216402

<rdar://problem/68702680>

Reviewed by Dewei Zhu.

  • Scripts/libraries/webkitscmpy/webkitscmpy/init.py:
  • Scripts/libraries/webkitscmpy/webkitscmpy/contributor.py: Added.

(Contributor): Object mapping a contributor by name to their associated email addresses.
(Contributor.clear): Clear the in-memory cache of Contributor objects.
(Contributor.from_scm_log): Find or generate a Contributor object given a commit log line from
an SCM tool.
(Contributor.init):
(Contributor.email): Return a single email for a Contributor.
(Contributor.repr):
(Contributor.hash):
(Contributor.cmp):
(Contributor.eq):
(Contributor.ne):
(Contributor.lt):
(Contributor.le):
(Contributor.gt):
(Contributor.ge):

  • Scripts/libraries/webkitscmpy/webkitscmpy/test/contributor_unittest.py: Added.

(TestContributor):
(TestContributor.test_git_log):
(TestContributor.test_svn_log):
(TestContributor.test_svn_patch_by_log):
(TestContributor.test_author_mapping):
(TestContributor.test_email_mapping):
(TestContributor.test_invalid_log):
(TestContributor.test_comparison):
(TestContributor.test_string_comparison):
(TestContributor.test_hash):
(TestContributor.test_sorting):

Location:
trunk/Tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r267095 r267096  
     12020-09-15  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [webkitscmpy] Add Contributor object
     4        https://bugs.webkit.org/show_bug.cgi?id=216402
     5         <rdar://problem/68702680>
     6
     7        Reviewed by Dewei Zhu.
     8
     9        * Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py:
     10        * Scripts/libraries/webkitscmpy/webkitscmpy/contributor.py: Added.
     11        (Contributor): Object mapping a contributor by name to their associated email addresses.
     12        (Contributor.clear): Clear the in-memory cache of Contributor objects.
     13        (Contributor.from_scm_log): Find or generate a Contributor object given a commit log line from
     14        an SCM tool.
     15        (Contributor.__init__):
     16        (Contributor.email): Return a single email for a Contributor.
     17        (Contributor.__repr__):
     18        (Contributor.__hash__):
     19        (Contributor.__cmp__):
     20        (Contributor.__eq__):
     21        (Contributor.__ne__):
     22        (Contributor.__lt__):
     23        (Contributor.__le__):
     24        (Contributor.__gt__):
     25        (Contributor.__ge__):
     26        * Scripts/libraries/webkitscmpy/webkitscmpy/test/contributor_unittest.py: Added.
     27        (TestContributor):
     28        (TestContributor.test_git_log):
     29        (TestContributor.test_svn_log):
     30        (TestContributor.test_svn_patch_by_log):
     31        (TestContributor.test_author_mapping):
     32        (TestContributor.test_email_mapping):
     33        (TestContributor.test_invalid_log):
     34        (TestContributor.test_comparison):
     35        (TestContributor.test_string_comparison):
     36        (TestContributor.test_hash):
     37        (TestContributor.test_sorting):
     38
    1392020-09-15  Sam Weinig  <weinig@apple.com>
    240
  • trunk/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py

    r266826 r267096  
    4747    )
    4848
    49 version = Version(0, 0, 3)
     49version = Version(0, 0, 4)
     50
     51from webkitscmpy.contributor import Contributor
    5052
    5153from webkitscmpy import local
Note: See TracChangeset for help on using the changeset viewer.