diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-03 17:37:21 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-01-03 17:37:21 -0500 |
commit | 7e752d8ef401f6028d637a864fc75a16e4b58d36 (patch) | |
tree | a0a7c54ffbd37dfa872cd503af7823c313486214 | |
parent | 214b350428e802d4bb53ca3063995cc98853cc97 (diff) | |
download | b4-7e752d8ef401f6028d637a864fc75a16e4b58d36.tar.gz |
ez: dedupe cover letter CCs taken from individual patches
Make sure we don't duplicate addresses already added to CCs from
previous individual patches.
Reported-by: Nathan Chancellor <nathan@kernel.org>
Link: https://msgid.link/Y6zeRaKlqNhh72OD@dev-arch.thelio-3990X
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1474,10 +1474,12 @@ def cmd_send(cmdargs: argparse.Namespace) -> None: mycc.append(pair) elif not commit and len(pccs): # the cover letter gets sent to folks with individual patch cc's + _seen = set(seen) for _commit, _ccs in pccs.items(): for pair in _ccs: - if pair[1] not in seen: + if pair[1] not in _seen: mycc.append(pair) + _seen.add(pair[1]) if mycc and not myto: # Move all Cc's into To when there's no To: myto = mycc |