diff options
author | Tom Rini <trini@ti.com> | 2014-05-09 18:48:26 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-09 18:48:26 -0400 |
commit | f4617ef86dbbc2b844d530564694b927099bf0a9 (patch) | |
tree | 33dd41efabe14ad2ce99559f556fa6f22841f8a5 /tools/patman/commit.py | |
parent | bcb879c0e37db1cf527ff408df93918f155012ea (diff) | |
parent | 097c5de5f4a64d3b121dc1dbe020f7f2545dabdb (diff) |
Merge branch 'tom' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'tools/patman/commit.py')
-rw-r--r-- | tools/patman/commit.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/patman/commit.py b/tools/patman/commit.py index 89cce7f88a..3e0adb8f7e 100644 --- a/tools/patman/commit.py +++ b/tools/patman/commit.py @@ -29,6 +29,7 @@ class Commit: self.tags = [] self.changes = {} self.cc_list = [] + self.signoff_set = set() self.notes = [] def AddChange(self, version, info): @@ -72,3 +73,16 @@ class Commit: cc_list: List of aliases or email addresses """ self.cc_list += cc_list + + def CheckDuplicateSignoff(self, signoff): + """Check a list of signoffs we have send for this patch + + Args: + signoff: Signoff line + Returns: + True if this signoff is new, False if we have already seen it. + """ + if signoff in self.signoff_set: + return False + self.signoff_set.add(signoff) + return True |