diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-27 18:49:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-16 08:07:58 -0600 |
commit | cf0ef9317cdb8a9b5be433f9c9da4c96ae7433d1 (patch) | |
tree | 89d4747d1a916e2255d3e4ce2e35a36e12d7664c /tools | |
parent | da2fa6d86a1f7aea590e7cbcd234718bcfd435b6 (diff) | |
download | u-boot-cf0ef9317cdb8a9b5be433f9c9da4c96ae7433d1.zip u-boot-cf0ef9317cdb8a9b5be433f9c9da4c96ae7433d1.tar.gz u-boot-cf0ef9317cdb8a9b5be433f9c9da4c96ae7433d1.tar.bz2 |
patman: Apply the cc limit to the cover letter also
Quite often on a series that has clean-up patches, the individual patches
may fit within the cc limit but the cover letter does not. Apply the same
limit to the cover letter.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/patman/series.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/patman/series.py b/tools/patman/series.py index a15f762..6d9d48b 100644 --- a/tools/patman/series.py +++ b/tools/patman/series.py @@ -249,8 +249,10 @@ class Series(dict): if cover_fname: cover_cc = gitutil.BuildEmailList(self.get('cover_cc', '')) cover_cc = [tools.FromUnicode(m) for m in cover_cc] - cc_list = '\0'.join([tools.ToUnicode(x) - for x in sorted(set(cover_cc + all_ccs))]) + cover_cc = list(set(cover_cc + all_ccs)) + if limit is not None: + cover_cc = cover_cc[:limit] + cc_list = '\0'.join([tools.ToUnicode(x) for x in sorted(cover_cc)]) print(cover_fname, cc_list, file=fd) fd.close() |