aboutsummaryrefslogtreecommitdiff
path: root/b4/__init__.py
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-25 15:48:06 -0400
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2020-05-25 15:48:06 -0400
commit12a69d7c5018c0dc0188e8f79933f2f7cb257c57 (patch)
tree5a24176dc64834cef0d56fb668dd3fe9ab578ccb /b4/__init__.py
parent59be08453137a3b9c6a25dc6787b5066a88a84cd (diff)
downloadb4-12a69d7c5018c0dc0188e8f79933f2f7cb257c57.tar.gz
Backfill series before diffing them
Make sure we a) attempt to backfill the series if they are incomplete, b) error out if the series is incomplete anyway Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r--b4/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 3cdad1c..ab8f034 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -680,6 +680,9 @@ class LoreSeries:
# Logic largely borrowed from gj_tools
seenfiles = set()
for lmsg in self.patches[1:]:
+ if lmsg is None:
+ logger.critical('ERROR: v%s series incomplete; unable to create a fake-am range', self.revision)
+ return None, None
logger.debug('Looking at %s', lmsg.full_subject)
lmsg.load_hashes()
if not len(lmsg.blob_indexes):