Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pony
tshistory
Commits
190dfe3e898f
Commit
30425bc2
authored
Jun 05, 2019
by
Aurélien Campéas
Browse files
snapshot: clarify the presence of Nones in the revisions list
This is because of history/diffmode.
parent
ba402cccfc73
Changes
1
Hide whitespace changes
Inline
Side-by-side
tshistory/snapshot.py
View file @
190dfe3e
...
...
@@ -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
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment