summaryrefslogtreecommitdiff
path: root/b4
diff options
context:
space:
mode:
Diffstat (limited to 'b4')
-rw-r--r--b4/__init__.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/b4/__init__.py b/b4/__init__.py
index 0a250ef..e7f655f 100644
--- a/b4/__init__.py
+++ b/b4/__init__.py
@@ -149,12 +149,15 @@ class LoreMailbox:
return None
def backfill(self, revision):
- # Find first non-None member in patches
- lser = self.series[revision]
- patch = None
- for patch in lser.patches:
- if patch is not None:
- break
+ if revision in self.covers and self.covers[revision] is not None:
+ patch = self.covers[revision]
+ else:
+ # Find first non-None member in patches
+ lser = self.series[revision]
+ patch = None
+ for patch in lser.patches:
+ if patch is not None:
+ break
logger.info('---')
logger.info('Thread incomplete, attempting to backfill')
cachedir = get_cache_dir()