Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
05952f40
Commit
05952f40
authored
Jun 11, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b039f763
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+10
-9
No files found.
wcfs/wcfs_test.py
View file @
05952f40
...
...
@@ -520,15 +520,16 @@ class tFile:
w
=
wlink
.
_watching
.
get
(
t
.
zf
)
if
w
is
not
None
and
w
.
at
<
blkrev
:
if
cached
==
1
:
# XXX assert blk already pinned on that watch
assert
blk
in
w
.
pinned
# XXX correct?
# @head[blk].rev is after w.at - w[blk] must be already pinned
assert
blk
in
w
.
pinned
assert
w
.
pinned
[
blk
]
<=
w
.
at
else
:
assert
cached
==
0
assert
blk
not
in
w
.
pinned
# cache is cleared only on invalidations
#
XXX correct ^^^ ?
# XXX and watch not already pinned on the watch
pinok
=
{
blk
:
t
.
tdb
.
_blkRev
(
t
.
zf
,
blk
,
w
.
at
)}
shouldPin
=
True
# even if @head[blk] is uncached, the block could be
#
already pinned by setup watch
if
blk
not
in
w
.
pinned
:
pinok
=
{
blk
:
t
.
tdb
.
_blkRev
(
t
.
zf
,
blk
,
w
.
at
)}
shouldPin
=
True
wpin
[
wlink
]
=
pinok
if
pinokByWLink
is
not
None
:
...
...
@@ -1144,7 +1145,7 @@ def test_wcfs():
# >>> XXX commit data to not yet accessed f part - nothing happens
#
"""
"""
# >>> invalidation protocol
print('
\
n
\
n
inv. protocol
\
n
\
n
')
...
...
@@ -1210,7 +1211,7 @@ def test_wcfs():
for at in revv[1:]:
wl.watch(zf, at)
wl.close()
#
"""
"""
# XXX move before setup watch?
print
(
'
\
n
\
n
\
n
\
n
WATCH+COMMIT
\
n
\
n
'
)
...
...
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