Skip to contentSkip to conversation

gerrit-send-mail.py: Add patch version to subject

PATCH In review Frank Lichtenheld 2 participants 2 messages Oct 25, 2023 – Oct 29, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gerrit-send-mail.py: Add patch version to subject

Change-Id I75403dfbebeeb4d667c7dd6b8276c6a4f2ae4842
---
 dev-tools/gerrit-send-mail.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
dev-tools/gerrit-send-mail.py +2 -1
index 851a20a0..5429aef6 100755
@@ -108,8 +108,9 @@ Acked-by according to Gerrit (reflected above):
         + patch_text[comment_start:]
     )
     filename = f"gerrit-{args.changeid}-{details['revision']}.patch"
+    patch_text_final = patch_text_mod.replace("Subject: [PATCH]", f"Subject: [PATCH v{details['revision']}]")
     with open(filename, "w") as patch_file:
-        patch_file.write(patch_text_mod)
+        patch_file.write(patch_text_final)
     print("send with:")
     print(f"git send-email --in-reply-to {details['msg_id']} {filename}")
 
Signature · 1 line
2.34.1
Acked-by on v1 1/1
#1 lore raw

Thanks, this is useful :-) - I haven't actually tested it yet, just looked at the change (and the results of you using it on mbedtls v7...).

Your patch has been applied to the master branch.

commit ba5ed490d3844705cc950dc2eae8c6a92938e757 (master)

Author: Frank Lichtenheld
Date:   Wed Oct 25 14:20:39 2023 +0200
     gerrit-send-mail.py: Add patch version to subject

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg27296.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering