summaryrefslogtreecommitdiff
path: root/tools/patman/series.py
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2012-08-18 07:19:51 +0000
committerWolfgang Denk <wd@denx.de>2012-09-02 16:27:07 +0200
commit43de0244c133b6cb9041ae6e7e4ae79839f22c44 (patch)
tree9077b7019b961ea9133552f713040f2de341ec62 /tools/patman/series.py
parentd5f81d8acd14329095722879cf17a9b5295111dd (diff)
downloadu-boot-imx-43de0244c133b6cb9041ae6e7e4ae79839f22c44.zip
u-boot-imx-43de0244c133b6cb9041ae6e7e4ae79839f22c44.tar.gz
u-boot-imx-43de0244c133b6cb9041ae6e7e4ae79839f22c44.tar.bz2
patman: Do not Cc addresses included in To list
In case an address is listed in the To list, those will be skipped on Cc list or user might end with a duplicated message. This fixes the case when a tag points to same address used as series destination thus avoiding duplicated sending. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'tools/patman/series.py')
-rw-r--r--tools/patman/series.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py
index 518834c..27528bf 100644
--- a/tools/patman/series.py
+++ b/tools/patman/series.py
@@ -114,6 +114,13 @@ class Series(dict):
cc_list += gitutil.BuildEmailList(commit.tags)
cc_list += gitutil.BuildEmailList(commit.cc_list)
+ # Skip items in To list
+ if 'to' in self:
+ try:
+ map(cc_list.remove, gitutil.BuildEmailList(self.to))
+ except ValueError:
+ pass
+
for email in cc_list:
if email == None:
email = col.Color(col.YELLOW, "<alias '%s' not found>"