diff options
Diffstat (limited to 'tools/patman/series.py')
| -rw-r--r-- | tools/patman/series.py | 19 | 
1 files changed, 13 insertions, 6 deletions
| diff --git a/tools/patman/series.py b/tools/patman/series.py index 05d9e73a4..27528bf21 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>" @@ -154,10 +161,9 @@ class Series(dict):              for this_commit, text in self.changes[change]:                  if commit and this_commit != commit:                      continue -                if text not in out: -                    out.append(text) +                out.append(text)              if out: -                out = ['Changes in v%d:' % change] + sorted(out) +                out = ['Changes in v%d:' % change] + out                  if need_blank:                      out = [''] + out                  final += out @@ -174,12 +180,13 @@ class Series(dict):          col = terminal.Color()          if self.get('version'):              changes_copy = dict(self.changes) -            for version in range(2, int(self.version) + 1): +            for version in range(1, int(self.version) + 1):                  if self.changes.get(version):                      del changes_copy[version]                  else: -                    str = 'Change log missing for v%d' % version -                    print col.Color(col.RED, str) +                    if version > 1: +                        str = 'Change log missing for v%d' % version +                        print col.Color(col.RED, str)              for version in changes_copy:                  str = 'Change log for unknown version v%d' % version                  print col.Color(col.RED, str) |