diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-06-23 13:08:15 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2023-06-23 13:08:15 -0400 |
commit | 099c9b47b39b6076752b8c757872080fad8fae56 (patch) | |
tree | b38f7c0496a8604bfff5009371b5e028bf85eaa8 | |
parent | 87aacf279afc3c1eda7b2e6e02e70842b4f99bc7 (diff) | |
download | b4-099c9b47b39b6076752b8c757872080fad8fae56.tar.gz |
ez: store sent prefixes with the tag message
For resend purposes, we need to store the prefixes that were used for
sending that series at the time. This way when --resend is used, we can
restore the subject line to what it was at the time.
Reported-by: Erik Schilling <erik.schilling@linaro.org>
Link: https://msgid.link/CTDVYQ01B09D.1FUED4Y6IQUKI@fedora
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217564
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1253,7 +1253,10 @@ def get_prep_branch_as_patches(movefrom: bool = True, thread: bool = True, addtr except (KeyError, IndexError): logger.debug('Could not find previous series msgid, skipping %s', voldrev) - tag_msg = f'{csubject.full_subject}\n\n{cover_letter}' + header = csubject.full_subject + if prefixes: + header = '[' + ', '.join(prefixes) + f'] {header}' + tag_msg = f'{header}\n\n{cover_letter}' return alltos, allccs, tag_msg, patches |