Tab Atkins is not in committers.py (as a non-committer)
[WebKit-https.git] / Tools / Scripts / webkitpy / common / config / committers.py
1 # Copyright (c) 2011, Apple Inc. All rights reserved.
2 # Copyright (c) 2009, 2011 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 #     * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 #     * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 #     * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30 # WebKit's Python module for committer and reviewer validation.
31
32
33 class Contributor(object):
34     def __init__(self, name, email_or_emails, irc_nickname=None):
35         assert(name)
36         assert(email_or_emails)
37         self.full_name = name
38         if isinstance(email_or_emails, str):
39             self.emails = [email_or_emails]
40         else:
41             self.emails = email_or_emails
42         self.irc_nickname = irc_nickname
43         self.can_commit = False
44         self.can_review = False
45
46     def bugzilla_email(self):
47         # FIXME: We're assuming the first email is a valid bugzilla email,
48         # which might not be right.
49         return self.emails[0]
50
51     def __str__(self):
52         return '"%s" <%s>' % (self.full_name, self.emails[0])
53
54
55 class Committer(Contributor):
56     def __init__(self, name, email_or_emails, irc_nickname=None):
57         Contributor.__init__(self, name, email_or_emails, irc_nickname)
58         self.can_commit = True
59
60
61 class Reviewer(Committer):
62     def __init__(self, name, email_or_emails, irc_nickname=None):
63         Committer.__init__(self, name, email_or_emails, irc_nickname)
64         self.can_review = True
65
66
67 # This is a list of people who are neither committers nor reviewers, but get
68 # frequently CC'ed by others on Bugzilla bugs, so their names should be
69 # supported by autocomplete. No review needed to add to the list.
70
71
72 contributors_who_are_not_committers = [
73     Contributor("Alexey Marinichev", ["amarinichev@chromium.org", "amarinichev@google.com"], "amarinichev"),
74     Contributor("Ami Fischman", "fischman@chromium.org", "amifischman0"),
75     Contributor("Anna Cavender", "annacc@chromium.org", "annacc"),
76     Contributor("Anne van Kesteren", "annevankesteren+webkit@gmail.com", "annevk"),
77     Contributor("Annie Sullivan", "sullivan@chromium.org", "annie"),
78     Contributor("David Dorwin", "ddorwin@chromium.org", "ddorwin"),
79     Contributor("David Grogan", "dgrogan@chromium.org", "dgrogan"),
80     Contributor("Douglas Davidson", "ddavidso@apple.com"),
81     Contributor("Finnur Thorarinsson", "finnur@chromium.org", "finnur"),
82     Contributor("Greg Simon", "gregsimon@chromium.org", "gregsimon"),
83     Contributor("Gregg Tavares", ["gman@google.com", "gman@chromium.org"], "gman"),
84     Contributor("Ian Hickson", "ian@hixie.ch", "hixie"),
85     Contributor("John Bates", ["jbates@google.com", "jbates@chromium.org"], "jbates"),
86     Contributor("John Bauman", ["jbauman@chromium.org", "jbauman@google.com"], "jbauman"),
87     Contributor("Pierre Rossi", "pierre.rossi@gmail.com", "elproxy"),
88     Contributor("Tab Atkins", ["tabatkins@google.com", "jackalmage@gmail.com"], "tabatkins"),
89     Contributor("Wyatt Carss", "wcarss@chromium.org", "wcarss"),
90 ]
91
92
93 # This is intended as a canonical, machine-readable list of all non-reviewer
94 # committers for WebKit.  If your name is missing here and you are a committer,
95 # please add it.  No review needed.  All reviewers are committers, so this list
96 # is only of committers who are not reviewers.
97
98
99 committers_unable_to_review = [
100     Committer("Aaron Boodman", "aa@chromium.org", "aboodman"),
101     Committer("Abhishek Arya", "inferno@chromium.org", "inferno-sec"),
102     Committer("Adam Klein", "adamk@chromium.org", "aklein"),
103     Committer("Adam Langley", "agl@chromium.org", "agl"),
104     Committer("Ademar de Souza Reis Junior", ["ademar.reis@openbossa.org", "ademar@webkit.org"], "ademar"),
105     Committer("Adrienne Walker", ["enne@google.com", "enne@chromium.org"], "enne"),
106     Committer("Albert J. Wong", "ajwong@chromium.org"),
107     Committer("Alejandro G. Castro", ["alex@igalia.com", "alex@webkit.org"]),
108     Committer("Alexander Kellett", ["lypanov@mac.com", "a-lists001@lypanov.net", "lypanov@kde.org"], "lypanov"),
109     Committer("Alexander Pavlov", "apavlov@chromium.org", "apavlov"),
110     Committer("Alexis Menard", ["alexis.menard@openbossa.org", "menard@kde.org"], "darktears"),
111     Committer("Alok Priyadarshi", "alokp@chromium.org", "alokp"),
112     Committer("Andre Boule", "aboule@apple.com"),
113     Committer("Andrei Popescu", "andreip@google.com", "andreip"),
114     Committer("Andrew Wellington", ["andrew@webkit.org", "proton@wiretapped.net"], "proton"),
115     Committer("Andrew Scherkus", "scherkus@chromium.org", "scherkus"),
116     Committer("Andrey Kosyakov", "caseq@chromium.org", "caseq"),
117     Committer("Andras Becsi", ["abecsi@webkit.org", "abecsi@inf.u-szeged.hu"], "bbandix"),
118     Committer("Andy Estes", "aestes@apple.com", "estes"),
119     Committer("Anthony Ricaud", "rik@webkit.org", "rik"),
120     Committer("Anton Muhin", "antonm@chromium.org", "antonm"),
121     Committer("Balazs Kelemen", "kbalazs@webkit.org", "kbalazs"),
122     Committer("Ben Murdoch", "benm@google.com", "benm"),
123     Committer("Benjamin C Meyer", ["ben@meyerhome.net", "ben@webkit.org"], "icefox"),
124     Committer("Benjamin Kalman", ["kalman@chromium.org", "kalman@google.com"], "kalman"),
125     Committer("Benjamin Otte", ["otte@gnome.org", "otte@webkit.org"], "otte"),
126     Committer("Brett Wilson", "brettw@chromium.org", "brettx"),
127     Committer("Caio Marcelo de Oliveira Filho", ["cmarcelo@webkit.org", "caio.oliveira@openbossa.org"], "cmarcelo"),
128     Committer("Cameron McCormack", ["cam@mcc.id.au", "cam@webkit.org"], "heycam"),
129     Committer("Carlos Garcia Campos", ["cgarcia@igalia.com", "carlosgc@gnome.org", "carlosgc@webkit.org"], "KaL"),
130     Committer("Carol Szabo", "carol@webkit.org", "cszabo1"),
131     Committer("Chang Shu", ["cshu@webkit.org", "Chang.Shu@nokia.com"], "cshu"),
132     Committer("Chris Evans", "cevans@google.com"),
133     Committer("Chris Guillory", ["ctguil@chromium.org", "chris.guillory@google.com"], "ctguil"),
134     Committer("Chris Petersen", "cpetersen@apple.com", "cpetersen"),
135     Committer("Chris Rogers", "crogers@google.com", "crogers"),
136     Committer("Christian Dywan", ["christian@twotoasts.de", "christian@webkit.org"]),
137     Committer("Collin Jackson", "collinj@webkit.org"),
138     Committer("Cris Neckar", "cdn@chromium.org", "cneckar"),
139     Committer("Daniel Cheng", "dcheng@chromium.org", "dcheng"),
140     Committer("David Smith", ["catfish.man@gmail.com", "dsmith@webkit.org"], "catfishman"),
141     Committer("Dean Jackson", "dino@apple.com", "dino"),
142     Committer("Diego Gonzalez", ["diegohcg@webkit.org", "diego.gonzalez@openbossa.org"], "diegohcg"),
143     Committer("Dmitry Lomov", ["dslomov@google.com", "dslomov@chromium.org"], "dslomov"),
144     Committer("Dominic Cooney", "dominicc@chromium.org", "dominicc"),
145     Committer("Drew Wilson", "atwilson@chromium.org", "atwilson"),
146     Committer("Eli Fidler", "eli@staikos.net", "QBin"),
147     Committer("Emil A Eklund", "eae@chromium.org", "eae"),
148     Committer("Erik Arvidsson", "arv@chromium.org", "arv"),
149     Committer("Eric Roman", "eroman@chromium.org", "eroman"),
150     Committer("Eric Uhrhane", "ericu@chromium.org", "ericu"),
151     Committer("Evan Martin", "evan@chromium.org", "evmar"),
152     Committer("Evan Stade", "estade@chromium.org", "estade"),
153     Committer("Fady Samuel", "fsamuel@chromium.org", "fsamuel"),
154     Committer("Feng Qian", "feng@chromium.org"),
155     Committer("Fumitoshi Ukai", "ukai@chromium.org", "ukai"),
156     Committer("Gabor Loki", "loki@webkit.org", "loki04"),
157     Committer("Gabor Rapcsanyi", ["rgabor@webkit.org", "rgabor@inf.u-szeged.hu"], "rgabor"),
158     Committer("Girish Ramakrishnan", ["girish@forwardbias.in", "ramakrishnan.girish@gmail.com"], "girishr"),
159     Committer("Graham Dennis", ["Graham.Dennis@gmail.com", "gdennis@webkit.org"]),
160     Committer("Greg Bolsinga", "bolsinga@apple.com"),
161     Committer("Gyuyoung Kim", ["gyuyoung.kim@samsung.com", "gyuyoung.kim@webkit.org"], "gyuyoung"),
162     Committer("Hans Wennborg", "hans@chromium.org", "hwennborg"),
163     Committer("Hayato Ito", "hayato@chromium.org", "hayato"),
164     Committer("Helder Correia", "helder@sencha.com", "helder"),
165     Committer("Hin-Chung Lam", ["hclam@google.com", "hclam@chromium.org"]),
166     Committer("Ilya Sherman", "isherman@chromium.org", "isherman"),
167     Committer("Ilya Tikhonovsky", "loislo@chromium.org", "loislo"),
168     Committer("Ivan Krsti\u0107", "ike@apple.com"),
169     Committer("Jakob Petsovits", ["jpetsovits@rim.com", "jpetso@gmx.at"], "jpetso"),
170     Committer("Jakub Wieczorek", "jwieczorek@webkit.org", "fawek"),
171     Committer("James Hawkins", ["jhawkins@chromium.org", "jhawkins@google.com"], "jhawkins"),
172     Committer("James Kozianski", ["koz@chromium.org", "koz@google.com"], "koz"),
173     Committer("James Simonsen", "simonjam@chromium.org", "simonjam"),
174     Committer("Jay Civelli", "jcivelli@chromium.org", "jcivelli"),
175     Committer("Jeff Miller", "jeffm@apple.com", "jeffm7"),
176     Committer("Jeffrey Pfau", ["jeffrey@endrift.com", "jpfau@apple.com"], "jpfau"),
177     Committer("Jenn Braithwaite", "jennb@chromium.org", "jennb"),
178     Committer("Jens Alfke", ["snej@chromium.org", "jens@apple.com"]),
179     Committer("Jer Noble", "jer.noble@apple.com", "jernoble"),
180     Committer("Jeremy Moskovich", ["playmobil@google.com", "jeremy@chromium.org"], "jeremymos"),
181     Committer("Jessie Berlin", ["jberlin@webkit.org", "jberlin@apple.com"]),
182     Committer("Jesus Sanchez-Palencia", ["jesus@webkit.org", "jesus.palencia@openbossa.org"], "jeez_"),
183     Committer("Jia Pu", "jpu@apple.com"),
184     Committer("Jocelyn Turcotte", "jocelyn.turcotte@nokia.com", "jturcotte"),
185     Committer("Jochen Eisinger", "jochen@chromium.org", "jochen__"),
186     Committer("John Abd-El-Malek", "jam@chromium.org", "jam"),
187     Committer("John Gregg", ["johnnyg@google.com", "johnnyg@chromium.org"], "johnnyg"),
188     Committer("John Knottenbelt", "jknotten@chromium.org", "jknotten"),
189     Committer("Johnny Ding", ["jnd@chromium.org", "johnnyding.webkit@gmail.com"], "johnnyding"),
190     Committer("Jon Lee", "jonlee@apple.com", "jonlee"),
191     Committer("Joone Hur", ["joone.hur@collabora.co.uk", "joone@kldp.org", "joone@webkit.org"], "joone"),
192     Committer("Joost de Valk", ["joost@webkit.org", "webkit-dev@joostdevalk.nl"], "Altha"),
193     Committer("Julie Parent", ["jparent@google.com", "jparent@chromium.org"], "jparent"),
194     Committer("Julien Chaffraix", ["jchaffraix@webkit.org", "julien.chaffraix@gmail.com"]),
195     Committer("Jungshik Shin", "jshin@chromium.org"),
196     Committer("Justin Schuh", "jschuh@chromium.org", "jschuh"),
197     Committer("Keishi Hattori", "keishi@webkit.org", "keishi"),
198     Committer("Kelly Norton", "knorton@google.com"),
199     Committer("Kenichi Ishibashi", "bashi@chromium.org", "bashi"),
200     Committer("Kenji Imasaki", "imasaki@chromium.org", "imasaki"),
201     Committer("Kent Hansen", "kent.hansen@nokia.com", "khansen"),
202     Committer("Kimmo Kinnunen", ["kimmo.t.kinnunen@nokia.com", "kimmok@iki.fi", "ktkinnun@webkit.org"], "kimmok"),
203     Committer("Kinuko Yasuda", "kinuko@chromium.org", "kinuko"),
204     Committer("Krzysztof Kowalczyk", "kkowalczyk@gmail.com"),
205     Committer("Kwang Yul Seo", ["kwangyul.seo@gmail.com", "skyul@company100.net", "kseo@webkit.org"], "kwangseo"),
206     Committer("Leandro Pereira", ["leandro@profusion.mobi", "leandro@webkit.org"], "acidx"),
207     Committer("Leo Yang", ["leo.yang@torchmobile.com.cn", "leoyang@webkit.org", "leoyang.webkit@gmail.com"], "leoyang"),
208     Committer("Levi Weintraub", ["leviw@chromium.org", "leviw@google.com", "lweintraub@apple.com"], "leviw"),
209     Committer("Lucas De Marchi", ["demarchi@webkit.org", "lucas.demarchi@profusion.mobi"], "demarchi"),
210     Committer("Lucas Forschler", ["lforschler@apple.com"], "lforschler"),
211     Committer("Luiz Agostini", ["luiz@webkit.org", "luiz.agostini@openbossa.org"], "lca"),
212     Committer("Luke Macpherson", ["macpherson@chromium.org", "macpherson@google.com"], "macpherson"),
213     Committer("Mads Ager", "ager@chromium.org"),
214     Committer("Mahesh Kulkarni", "mahesh.kulkarni@nokia.com", "maheshk"),
215     Committer("Marcus Voltis Bulach", "bulach@chromium.org"),
216     Committer("Mario Sanchez Prada", ["msanchez@igalia.com", "mario@webkit.org"], "msanchez"),
217     Committer("Matt Delaney", "mdelaney@apple.com"),
218     Committer("Matt Lilek", ["mlilek@apple.com", "webkit@mattlilek.com", "pewtermoose@webkit.org"]),
219     Committer("Matt Perry", "mpcomplete@chromium.org"),
220     Committer("Maxime Britto", ["maxime.britto@gmail.com", "britto@apple.com"]),
221     Committer("Maxime Simon", ["simon.maxime@gmail.com", "maxime.simon@webkit.org"], "maxime.simon"),
222     Committer("Michael Nordman", "michaeln@google.com", "michaeln"),
223     Committer("Michael Saboff", "msaboff@apple.com"),
224     Committer("Michelangelo De Simone", "michelangelo@webkit.org", "michelangelo"),
225     Committer("Mike Belshe", ["mbelshe@chromium.org", "mike@belshe.com"]),
226     Committer("Mike Fenton", ["mifenton@rim.com", "mike.fenton@torchmobile.com"], "mfenton"),
227     Committer("Mike Lawther", "mikelawther@chromium.org", "mikelawther"),
228     Committer("Mike Thole", ["mthole@mikethole.com", "mthole@apple.com"]),
229     Committer("Mikhail Naganov", "mnaganov@chromium.org"),
230     Committer("Nat Duca", ["nduca@chromium.org", "nduca@google.com"], "nduca"),
231     Committer("Nico Weber", ["thakis@chromium.org", "thakis@google.com"], "thakis"),
232     Committer("Pam Greene", "pam@chromium.org", "pamg"),
233     Committer("Patrick Gansterer", ["paroga@paroga.com", "paroga@webkit.org"], "paroga"),
234     Committer("Pavel Podivilov", "podivilov@chromium.org", "podivilov"),
235     Committer("Peter Kasting", ["pkasting@google.com", "pkasting@chromium.org"], "pkasting"),
236     Committer("Peter Varga", ["pvarga@webkit.org", "pvarga@inf.u-szeged.hu"], "stampho"),
237     Committer("Pierre d'Herbemont", ["pdherbemont@free.fr", "pdherbemont@apple.com"], "pdherbemont"),
238     Committer("Pierre-Olivier Latour", "pol@apple.com", "pol"),
239     Committer("Pratik Solanki", "psolanki@apple.com", "psolanki"),
240     Committer("Qi Zhang", ["qi.2.zhang@nokia.com", "qi.zhang02180@gmail.com"], "qi"),
241     Committer("Rafael Antognolli", "antognolli@profusion.mobi", "antognolli"),
242     Committer("Renata Hodovan", "reni@webkit.org", "reni"),
243     Committer("Robert Hogan", ["robert@webkit.org", "robert@roberthogan.net", "lists@roberthogan.net"], "mwenge"),
244     Committer("Roland Steiner", "rolandsteiner@chromium.org"),
245     Committer("Ryuan Choi", "ryuan.choi@samsung.com", "ryuan"),
246     Committer("Satish Sampath", "satish@chromium.org"),
247     Committer("Scott Violet", "sky@chromium.org", "sky"),
248     Committer("Sergio Villar Senin", ["svillar@igalia.com", "sergio@webkit.org"], "svillar"),
249     Committer("Steve Lacey", "sjl@chromium.org", "stevela"),
250     Committer("Trey Matteson", "trey@usa.net", "trey"),
251     Committer("Tristan O'Tierney", ["tristan@otierney.net", "tristan@apple.com"]),
252     Committer("Vangelis Kokkevis", "vangelis@chromium.org", "vangelis"),
253     Committer("Victor Wang", "victorw@chromium.org", "victorw"),
254     Committer("Victoria Kirst", "vrk@chromium.org", "vrk"),
255     Committer("Vitaly Repeshko", "vitalyr@chromium.org"),
256     Committer("Vsevolod Vlasov", "vsevik@chromium.org"),
257     Committer("William Siegrist", "wsiegrist@apple.com", "wms"),
258     Committer("W. James MacLean", "wjmaclean@chromium.org", "wjmaclean"),
259     Committer("Xiaomei Ji", "xji@chromium.org", "xji"),
260     Committer("Yael Aharon", "yael.aharon@nokia.com", "yael"),
261     Committer("Yaar Schnitman", ["yaar@chromium.org", "yaar@google.com"]),
262     Committer("Yong Li", ["yong.li.webkit@gmail.com", "yong.li@torchmobile.com"], "yong"),
263     Committer("Yongjun Zhang", "yongjun.zhang@nokia.com"),
264     Committer("Yi Shen", ["yi.4.shen@nokia.com", "shenyi2006@gmail.com"]),
265     Committer("Yuta Kitamura", "yutak@chromium.org", "yutak"),
266     Committer("Yuzo Fujishima", "yuzo@google.com", "yuzo"),
267     Committer("Zhenyao Mo", "zmo@google.com", "zhenyao"),
268     Committer("Zoltan Horvath", ["zoltan@webkit.org", "hzoltan@inf.u-szeged.hu", "horvath.zoltan.6@stud.u-szeged.hu"], "zoltan"),
269     Committer("Naoki Takano", "honten@chromium.org", "honten"),
270 ]
271
272
273 # This is intended as a canonical, machine-readable list of all reviewers for
274 # WebKit.  If your name is missing here and you are a reviewer, please add it.
275 # No review needed.
276
277
278 reviewers_list = [
279     Reviewer("Ada Chan", "adachan@apple.com", "chanada"),
280     Reviewer("Adam Barth", "abarth@webkit.org", "abarth"),
281     Reviewer("Adam Roben", "aroben@apple.com", "aroben"),
282     Reviewer("Adam Treat", ["treat@kde.org", "treat@webkit.org", "atreat@rim.com"], "manyoso"),
283     Reviewer("Adele Peterson", "adele@apple.com", "adele"),
284     Reviewer("Alexey Proskuryakov", ["ap@webkit.org", "ap@apple.com"], "ap"),
285     Reviewer("Alice Liu", "alice.liu@apple.com", "aliu"),
286     Reviewer("Alp Toker", ["alp@nuanti.com", "alp@atoker.com", "alp@webkit.org"], "alp"),
287     Reviewer("Anders Carlsson", ["andersca@apple.com", "acarlsson@apple.com"], "andersca"),
288     Reviewer("Andreas Kling", ["kling@webkit.org", "andreas.kling@nokia.com"], "kling"),
289     Reviewer("Antonio Gomes", ["tonikitoo@webkit.org", "agomes@rim.com"], "tonikitoo"),
290     Reviewer("Antti Koivisto", ["koivisto@iki.fi", "antti@apple.com", "antti.j.koivisto@nokia.com"], "anttik"),
291     Reviewer("Ariya Hidayat", ["ariya.hidayat@gmail.com", "ariya@sencha.com", "ariya@webkit.org"], "ariya"),
292     Reviewer("Benjamin Poulain", ["benjamin@webkit.org", "benjamin.poulain@nokia.com", "ikipou@gmail.com"], "benjaminp"),
293     Reviewer("Beth Dakin", "bdakin@apple.com", "dethbakin"),
294     Reviewer("Brady Eidson", "beidson@apple.com", "bradee-oh"),
295     Reviewer("Brent Fulgham", "bfulgham@webkit.org", "bfulgham"),
296     Reviewer("Brian Weinstein", "bweinstein@apple.com", "bweinstein"),
297     Reviewer("Cameron Zwarich", ["zwarich@apple.com", "cwzwarich@apple.com", "cwzwarich@webkit.org"]),
298     Reviewer("Chris Blumenberg", "cblu@apple.com", "cblu"),
299     Reviewer("Chris Marrin", "cmarrin@apple.com", "cmarrin"),
300     Reviewer("Chris Fleizach", "cfleizach@apple.com", "cfleizach"),
301     Reviewer("Chris Jerdonek", "cjerdonek@webkit.org", "cjerdonek"),
302     Reviewer(u"Csaba Osztrogon\u00e1c", "ossy@webkit.org", "ossy"),
303     Reviewer("Dan Bernstein", ["mitz@webkit.org", "mitz@apple.com"], "mitzpettel"),
304     Reviewer("Daniel Bates", "dbates@webkit.org", "dydz"),
305     Reviewer("Darin Adler", "darin@apple.com", "darin"),
306     Reviewer("Darin Fisher", ["fishd@chromium.org", "darin@chromium.org"], "fishd"),
307     Reviewer("David Harrison", "harrison@apple.com", "harrison"),
308     Reviewer("David Hyatt", "hyatt@apple.com", "hyatt"),
309     Reviewer("David Kilzer", ["ddkilzer@webkit.org", "ddkilzer@apple.com"], "ddkilzer"),
310     Reviewer("David Levin", "levin@chromium.org", "dave_levin"),
311     Reviewer("Dimitri Glazkov", "dglazkov@chromium.org", "dglazkov"),
312     Reviewer("Dirk Pranke", "dpranke@chromium.org", "dpranke"),
313     Reviewer("Dirk Schulze", "krit@webkit.org", "krit"),
314     Reviewer("Dmitry Titov", "dimich@chromium.org", "dimich"),
315     Reviewer("Don Melton", "gramps@apple.com", "gramps"),
316     Reviewer("Dumitru Daniliuc", "dumi@chromium.org", "dumi"),
317     Reviewer("Enrica Casucci", "enrica@apple.com", "enrica"),
318     Reviewer("Eric Carlson", "eric.carlson@apple.com"),
319     Reviewer("Eric Seidel", "eric@webkit.org", "eseidel"),
320     Reviewer("Gavin Barraclough", "barraclough@apple.com", "gbarra"),
321     Reviewer("Geoffrey Garen", "ggaren@apple.com", "ggaren"),
322     Reviewer("George Staikos", ["staikos@kde.org", "staikos@webkit.org"]),
323     Reviewer("Gustavo Noronha Silva", ["gns@gnome.org", "kov@webkit.org", "gustavo.noronha@collabora.co.uk"], "kov"),
324     Reviewer("Hajime Morita", ["morrita@google.com", "morrita@chromium.org"], "morrita"),
325     Reviewer("Holger Freyther", ["zecke@selfish.org", "zecke@webkit.org"], "zecke"),
326     Reviewer("James Robinson", ["jamesr@chromium.org", "jamesr@google.com"], "jamesr"),
327     Reviewer("Jan Alonzo", ["jmalonzo@gmail.com", "jmalonzo@webkit.org"], "janm"),
328     Reviewer("Jeremy Orlow", "jorlow@webkit.org", "jorlow"),
329     Reviewer("Jian Li", "jianli@chromium.org", "jianli"),
330     Reviewer("John Sullivan", "sullivan@apple.com", "sullivan"),
331     Reviewer("Jon Honeycutt", "jhoneycutt@apple.com", "jhoneycutt"),
332     Reviewer("Joseph Pecoraro", ["joepeck@webkit.org", "pecoraro@apple.com"], "JoePeck"),
333     Reviewer("Justin Garcia", "justin.garcia@apple.com", "justing"),
334     Reviewer("Ken Kocienda", "kocienda@apple.com"),
335     Reviewer("Kenneth Rohde Christiansen", ["kenneth@webkit.org", "kenneth.christiansen@openbossa.org", "kenneth.christiansen@gmail.com"], "kenne"),
336     Reviewer("Kenneth Russell", "kbr@google.com", "kbr_google"),
337     Reviewer("Kent Tamura", "tkent@chromium.org", "tkent"),
338     Reviewer("Kevin Decker", "kdecker@apple.com", "superkevin"),
339     Reviewer("Kevin McCullough", "kmccullough@apple.com", "maculloch"),
340     Reviewer("Kevin Ollivier", ["kevino@theolliviers.com", "kevino@webkit.org"], "kollivier"),
341     Reviewer("Lars Knoll", ["lars@trolltech.com", "lars@kde.org", "lars.knoll@nokia.com"], "lars"),
342     Reviewer("Laszlo Gombos", "laszlo.1.gombos@nokia.com", "lgombos"),
343     Reviewer("Maciej Stachowiak", "mjs@apple.com", "othermaciej"),
344     Reviewer("Mark Rowe", "mrowe@apple.com", "bdash"),
345     Reviewer("Martin Robinson", ["mrobinson@webkit.org", "mrobinson@igalia.com", "martin.james.robinson@gmail.com"], "mrobinson"),
346     Reviewer("Mihai Parparita", "mihaip@chromium.org", "mihaip"),
347     Reviewer("Nate Chapin", "japhet@chromium.org", "japhet"),
348     Reviewer("Nikolas Zimmermann", ["zimmermann@kde.org", "zimmermann@physik.rwth-aachen.de", "zimmermann@webkit.org"], "wildfox"),
349     Reviewer("Noam Rosenthal", "noam.rosenthal@nokia.com", "noamr"),
350     Reviewer("Ojan Vafai", "ojan@chromium.org", "ojan"),
351     Reviewer("Oliver Hunt", "oliver@apple.com", "olliej"),
352     Reviewer("Pavel Feldman", "pfeldman@chromium.org", "pfeldman"),
353     Reviewer("Philippe Normand", ["pnormand@igalia.com", "philn@webkit.org", "philn@igalia.com"], "philn-tp"),
354     Reviewer("Richard Williamson", "rjw@apple.com", "rjw"),
355     Reviewer("Rob Buis", ["rwlbuis@gmail.com", "rwlbuis@webkit.org"], "rwlbuis"),
356     Reviewer("Ryosuke Niwa", "rniwa@webkit.org", "rniwa"),
357     Reviewer("Sam Weinig", ["sam@webkit.org", "weinig@apple.com"], "weinig"),
358     Reviewer("Shinichiro Hamaji", "hamaji@chromium.org", "hamaji"),
359     Reviewer("Simon Fraser", "simon.fraser@apple.com", "smfr"),
360     Reviewer("Simon Hausmann", ["hausmann@webkit.org", "hausmann@kde.org", "simon.hausmann@nokia.com"], "tronical"),
361     Reviewer("Stephanie Lewis", "slewis@apple.com", "sundiamonde"),
362     Reviewer("Stephen White", "senorblanco@chromium.org", "senorblanco"),
363     Reviewer("Steve Block", "steveblock@google.com", "steveblock"),
364     Reviewer("Steve Falkenburg", "sfalken@apple.com", "sfalken"),
365     Reviewer("Tim Omernick", "timo@apple.com"),
366     Reviewer("Timothy Hatcher", ["timothy@apple.com", "timothy@hatcher.name"], "xenon"),
367     Reviewer("Tony Chang", "tony@chromium.org", "tony^work"),
368     Reviewer("Tony Gentilcore", "tonyg@chromium.org", "tonyg-cr"),
369     Reviewer(u"Tor Arne Vestb\u00f8", ["vestbo@webkit.org", "tor.arne.vestbo@nokia.com"], "torarne"),
370     Reviewer("Vicki Murley", "vicki@apple.com"),
371     Reviewer("Xan Lopez", ["xan.lopez@gmail.com", "xan@gnome.org", "xan@webkit.org"], "xan"),
372     Reviewer("Yury Semikhatsky", "yurys@chromium.org", "yurys"),
373     Reviewer("Zack Rusin", "zack@kde.org", "zackr"),
374     Reviewer("Zoltan Herczeg", "zherczeg@webkit.org", "zherczeg"),
375 ]
376
377
378 class CommitterList(object):
379
380     # Committers and reviewers are passed in to allow easy testing
381     def __init__(self,
382                  committers=committers_unable_to_review,
383                  reviewers=reviewers_list,
384                  contributors=contributors_who_are_not_committers):
385         self._contributors = contributors + committers + reviewers
386         self._committers = committers + reviewers
387         self._reviewers = reviewers
388         self._contributors_by_email = {}
389
390     def contributors(self):
391         return self._contributors
392
393     def committers(self):
394         return self._committers
395
396     def reviewers(self):
397         return self._reviewers
398
399     def _email_to_contributor_map(self):
400         if not len(self._contributors_by_email):
401             for contributor in self._contributors:
402                 for email in contributor.emails:
403                     assert(email not in self._contributors_by_email)  # We should never have duplicate emails.
404                     self._contributors_by_email[email] = contributor
405         return self._contributors_by_email
406
407     def _committer_only(self, record):
408         if record and not record.can_commit:
409             return None
410         return record
411
412     def _reviewer_only(self, record):
413         if record and not record.can_review:
414             return None
415         return record
416
417     def contributor_by_name(self, name):
418         # This could be made into a hash lookup if callers need it to be fast.
419         for contributor in self.contributors():
420             if contributor.full_name and contributor.full_name == name:
421                 return contributor
422         return None
423
424     def committer_by_name(self, name):
425         return self._committer_only(self.contributor_by_name(name))
426
427     def contributor_by_irc_nickname(self, irc_nickname):
428         for contributor in self.contributors():
429             if contributor.irc_nickname and contributor.irc_nickname == irc_nickname:
430                 return contributor
431         return None
432
433     def contributor_by_email(self, email):
434         return self._email_to_contributor_map().get(email)
435
436     def committer_by_email(self, email):
437         return self._committer_only(self.contributor_by_email(email))
438
439     def reviewer_by_email(self, email):
440         return self._reviewer_only(self.contributor_by_email(email))