summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--b4/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index ca1bf60..1de513b 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -269,6 +269,10 @@ class LoreMailbox:
# Yes, this is very likely our cover letter
logger.debug(' fixed revision to v%s', irt.revision)
lmsg.revision = irt.revision
+ # alternatively, see if upthread is patch 1
+ elif lmsg.counter > 0 and irt is not None and irt.has_diff and irt.counter == 1:
+ logger.debug(' fixed revision to v%s', irt.revision)
+ lmsg.revision = irt.revision
# Run our check again
if lmsg.revision not in self.series: