Commit 30425bc2 authored by Aurélien Campéas's avatar Aurélien Campéas
Browse files

snapshot: clarify the presence of Nones in the revisions list


This is because of history/diffmode.
parent ba402cccfc73
......@@ -261,6 +261,8 @@ class Snapshot(SeriesServices):
return chunks
def findall(self, revs, from_value_date, to_value_date):
# there might be a None in first position because
# of the diff mode
csets = [rev for rev, _ in revs if rev is not None]
# csid -> heads
......@@ -284,7 +286,9 @@ class Snapshot(SeriesServices):
series = []
for cset, idate in revs:
if cset is None:
series.append((idate, None))
# first occurrence, because of diff mode
assert idate is None
series.append((None, None))
continue
chunks = []
head = cset_snap_map[cset]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment