Commit 742943a6 authored by Gustavo Padovan's avatar Gustavo Padovan

stats: also track of on behalf of who we pushed the patch

parent b3011e05
......@@ -15,6 +15,7 @@ CONTENT = " (?P<name>[\w\-\. ]+) <(?P<username>.*" + EMAIL_PATTERN + ".*)>"
contributors = {}
authored = {}
committed = {}
onbehalf = {}
signed = {}
reviewed = {}
acked = {}
......@@ -70,15 +71,19 @@ if __name__ == "__main__":
add_contributor(contributors, commit.author.email, commit.author.name)
add_commit(authored, commit.author.email, commit)
p = re.compile('Signed-off-by:' + CONTENT)
match = p.findall(commit.message)
for m in match:
add_contributor(contributors, m[1], m[0])
if not_author_or_committer(commit, m[1], m[0]):
add_commit(signed, m[1], commit)
if is_maintainer(commit, m[1], m[0]):
add_commit(committed, m[1], commit)
else:
p = re.compile('Signed-off-by:' + CONTENT)
match = p.findall(commit.message)
for m in match:
add_contributor(contributors, m[1], m[0])
if not_author_or_committer(commit, m[1], m[0]):
add_commit(signed, m[1], commit)
add_contributor(contributors, commit.author.email, commit.author.name)
add_commit(onbehalf, commit.author.email, commit)
if is_maintainer(commit, m[1], m[0]):
add_commit(committed, m[1], commit)
for tag in OTHER_TAGS:
p = re.compile(tag[0] + CONTENT)
......@@ -99,6 +104,10 @@ if __name__ == "__main__":
print_commits(signed)
print("")
print("# On behalf of: (%d)\n" % total_commits(onbehalf))
print_commits(onbehalf)
print("")
for tag in OTHER_TAGS:
print("# %s (%d)\n" % (tag[0],total_commits(tag[1])))
print_commits(tag[1])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment