aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-20 13:54:40 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2022-07-20 13:54:40 -0400
commite2b6fe0a2288c1c79e5d4f0d8b48d86b81d5b31f (patch)
tree5eb756af972281aef94635ad816d46f34ea208b2
parentbffadb84b0d1970a55c6d2176133670af64f109e (diff)
downloadb4-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.py5
1 files changed, 5 insertions, 0 deletions
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