summaryrefslogtreecommitdiff
path: root/tools/patman/commit.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-07-27 11:15:37 -0400
committerTom Rini <trini@konsulko.com>2020-07-27 11:15:37 -0400
commit4e05c167a756cbfb0a51ef09e52c8b5c7c4d6514 (patch)
tree0bcde687838471c17d331106b865eb4361237ed8 /tools/patman/commit.py
parent117c7ee283f1c3f49306fb11939b59fe11cbf5a8 (diff)
parent347e0f00e850028b4595287d5158c5a8f36ba910 (diff)
Merge tag 'dm-pull-20jul20-take2a' of https://gitlab.denx.de/u-boot/custodians/u-boot-dm
binman support for FIT new UCLASS_SOC patman switch 'test' command minor fdt fixes patman usability improvements
Diffstat (limited to 'tools/patman/commit.py')
-rw-r--r--tools/patman/commit.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/patman/commit.py b/tools/patman/commit.py
index 48d0529c536..8d583c4ed39 100644
--- a/tools/patman/commit.py
+++ b/tools/patman/commit.py
@@ -2,6 +2,7 @@
# Copyright (c) 2011 The Chromium OS Authors.
#
+import collections
import re
# Separates a tag: at the beginning of the subject from the rest of it
@@ -23,6 +24,9 @@ class Commit:
notes: List of lines in the commit (not series) notes
change_id: the Change-Id: tag that was stripped from this commit
and can be used to generate the Message-Id.
+ rtags: Response tags (e.g. Reviewed-by) collected by the commit, dict:
+ key: rtag type (e.g. 'Reviewed-by')
+ value: Set of people who gave that rtag, each a name/email string
"""
def __init__(self, hash):
self.hash = hash
@@ -33,6 +37,7 @@ class Commit:
self.signoff_set = set()
self.notes = []
self.change_id = None
+ self.rtags = collections.defaultdict(set)
def AddChange(self, version, info):
"""Add a new change line to the change list for a version.
@@ -88,3 +93,12 @@ class Commit:
return False
self.signoff_set.add(signoff)
return True
+
+ def AddRtag(self, rtag_type, who):
+ """Add a response tag to a commit
+
+ Args:
+ key: rtag type (e.g. 'Reviewed-by')
+ who: Person who gave that rtag, e.g. 'Fred Bloggs <fred@bloggs.org>'
+ """
+ self.rtags[rtag_type].add(who)