Skip to content

Commit a6344b3

Browse files
committed
[contributors.json] Relocation (Part 1)
https://bugs.webkit.org/show_bug.cgi?id=229690 <rdar://problem/82552403> Reviewed by Aakash Jain. .: * metadata/contributors.json: Copied from Tools/Scripts/webkitpy/common/config/contributors.json. Tools: * Scripts/webkitpy/common/config/committers.py: (CommitterList.load_json): Read from metadata/contributors.json. (CommitterList.reformat_in_place): Ditto. Canonical link: https://commits.webkit.org/241182@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@281850 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 49b6ae4 commit a6344b3

4 files changed

Lines changed: 6253 additions & 6 deletions

File tree

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2021-09-01 Jonathan Bedard <jbedard@apple.com>
2+
3+
[contributors.json] Relocation (Part 1)
4+
https://bugs.webkit.org/show_bug.cgi?id=229690
5+
<rdar://problem/82552403>
6+
7+
Reviewed by Aakash Jain.
8+
9+
* metadata/contributors.json: Copied from Tools/Scripts/webkitpy/common/config/contributors.json.
10+
111
2021-08-30 Zan Dobersek <zdobersek@igalia.com>
212

313
RISCV64 support in LLInt

Tools/ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2021-09-01 Jonathan Bedard <jbedard@apple.com>
2+
3+
[contributors.json] Relocation (Part 1)
4+
https://bugs.webkit.org/show_bug.cgi?id=229690
5+
<rdar://problem/82552403>
6+
7+
Reviewed by Aakash Jain.
8+
9+
* Scripts/webkitpy/common/config/committers.py:
10+
(CommitterList.load_json): Read from metadata/contributors.json.
11+
(CommitterList.reformat_in_place): Ditto.
12+
113
2021-09-01 Alicia Boya García <aboya@igalia.com>
214

315
[GTK] Fix missing UTF-8 decoding in test crash logs

Tools/Scripts/webkitpy/common/config/committers.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
import fnmatch
3333
import json
34+
import os
3435
import sys
3536

3637
from webkitcorepy import string_utils, unicode
@@ -229,10 +230,12 @@ def __init__(self,
229230
self._accounts_by_login = {}
230231

231232
def load_json(self):
232-
filesystem = FileSystem()
233-
json_path = filesystem.join(filesystem.dirname(filesystem.path_to_module('webkitpy.common.config')), 'contributors.json')
233+
json_path = os.path.join(
234+
os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))),
235+
'metadata', 'contributors.json',
236+
)
234237
try:
235-
contributors = json.loads(filesystem.read_text_file(json_path))
238+
contributors = json.loads(FileSystem().read_text_file(json_path))
236239
except ValueError as e:
237240
sys.exit('contributors.json is malformed: ' + str(e))
238241

@@ -273,9 +276,11 @@ def as_json(self):
273276
return json.dumps(result, sort_keys=True, indent=3, separators=(',', ' : '))
274277

275278
def reformat_in_place(self):
276-
filesystem = FileSystem()
277-
json_path = filesystem.join(filesystem.dirname(filesystem.path_to_module('webkitpy.common.config')), 'contributors.json')
278-
filesystem.write_text_file(json_path, self.as_json())
279+
json_path = os.path.join(
280+
os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))),
281+
'metadata', 'contributors.json',
282+
)
283+
FileSystem().write_text_file(json_path, self.as_json())
279284

280285
# Contributors who are not in any other category.
281286
def _exclusive_contributors(self):

0 commit comments

Comments
 (0)