diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-07-20 13:54:40 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-07-20 13:54:40 -0400 |
commit | e2b6fe0a2288c1c79e5d4f0d8b48d86b81d5b31f (patch) | |
tree | 5eb756af972281aef94635ad816d46f34ea208b2 | |
parent | bffadb84b0d1970a55c6d2176133670af64f109e (diff) | |
download | b4-e2b6fe0a2288c1c79e5d4f0d8b48d86b81d5b31f.tar.gz |
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 <konstantin@linuxfoundation.org>
-rw-r--r-- | b4/ez.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |