From e2b6fe0a2288c1c79e5d4f0d8b48d86b81d5b31f Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Wed, 20 Jul 2022 13:54:40 -0400 Subject: ez-send: don't auto-increment revision on RESEND If one of the previxes is RESEND, then we don't auto-increment revision. Signed-off-by: Konstantin Ryabitsev --- b4/ez.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/b4/ez.py b/b4/ez.py index 36205da..f0b8f40 100644 --- a/b4/ez.py +++ b/b4/ez.py @@ -897,6 +897,11 @@ def cmd_ez_send(cmdargs: argparse.Namespace) -> None: if vrev not in tracking['series']['history']: tracking['series']['history'][vrev] = list() tracking['series']['history'][vrev].append(cover_msgid) + if 'RESEND' in prefixes: + logger.info('Not incrementing current revision due to RESEND') + store_cover(cover, tracking) + return + oldrev = tracking['series']['revision'] newrev = oldrev + 1 tracking['series']['revision'] = newrev -- cgit v1.2.3