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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
52eacf3d
Commit
52eacf3d
authored
Jun 23, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d1650e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+6
-3
No files found.
wcfs/wcfs_test.py
View file @
52eacf3d
...
...
@@ -856,6 +856,12 @@ class tSrvReq:
#
# The automatic computation of pinok is verified against explicitly provided
# pinok when it is present.
#
# Criteria for when blk must be pinned:
#
# blk ∈ pin(at) <=> ∃ r = rev(blk):
# 1) at < r ; block was changed after at
# 2) r ≤ headOfAccess(blk) ; block revision changed after at was accessed
@
func
(
tWatchLink
)
def
watch
(
twlink
,
zf
,
at
,
pinok
=
None
):
# -> tWatch
t
=
twlink
.
tdb
...
...
@@ -900,9 +906,6 @@ def watch(twlink, zf, at, pinok=None): # -> tWatch
assert
t
.
_blkRevAt
(
blk
,
headOfAccess
[
blk
])
>
at_prev
# blk ∉ pin means XXX
assert
headOfAccess
[
blk
]
>=
t
.
_blkRevAt
(
blk
,
t
.
head
)
pin
[
blk
]
=
None
# @head
...
...
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