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
d91a05d9
Commit
d91a05d9
authored
Jun 06, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
627c1ab6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+9
-9
No files found.
wcfs/wcfs_test.py
View file @
d91a05d9
...
...
@@ -856,29 +856,29 @@ def test_wcfs():
f
.
assertData
([],
mtime
=
at0
)
# >>> (@at1) commit data -> we can see it on wcfs
t
.
change
(
zf
,
{
2
:
'1
γ
'
})
t
.
change
(
zf
,
{
2
:
'1
cc
'
})
at1
=
t
.
commit
()
f
.
assertCache
([
0
,
0
,
0
])
# initially not cached
f
.
assertData
([
''
,
''
,
'1
γ
'
],
mtime
=
t
.
head
)
f
.
assertData
([
''
,
''
,
'1
cc
'
],
mtime
=
t
.
head
)
# >>> (@at2) commit again -> we can see both latest and snapshotted states
t
.
change
(
zf
,
{
2
:
'2
γ'
,
3
:
'2δ
'
})
t
.
change
(
zf
,
{
2
:
'2
c'
,
3
:
'2d
'
})
at2
=
t
.
commit
()
# f @head
f
.
assertCache
([
1
,
1
,
0
,
0
])
f
.
assertData
([
''
,
''
,
'2
γ'
,
'2δ
'
],
mtime
=
t
.
head
)
f
.
assertData
([
''
,
''
,
'2
c'
,
'2d
'
],
mtime
=
t
.
head
)
# f @at1
f1
=
t
.
open
(
zf
,
at
=
at1
)
f1
.
assertCache
([
0
,
0
,
1
])
f1
.
assertData
([
''
,
''
,
'1
γ
'
])
# XXX + mtime=at1?
f1
.
assertData
([
''
,
''
,
'1
cc
'
])
# XXX + mtime=at1?
# >>> (@at3) commit again without changing zf size
f2
=
t
.
open
(
zf
,
at
=
at2
)
t
.
change
(
zf
,
{
2
:
'3
γ
'
})
t
.
change
(
zf
,
{
2
:
'3
c
'
})
at3
=
t
.
commit
()
f
.
assertCache
([
1
,
1
,
0
,
1
])
...
...
@@ -891,15 +891,15 @@ def test_wcfs():
# f @head
f
.
assertCache
([
1
,
1
,
0
,
1
])
f
.
assertData
([
''
,
''
,
'3
γ'
,
'2δ
'
],
mtime
=
t
.
head
)
f
.
assertData
([
''
,
''
,
'3
c'
,
'2d
'
],
mtime
=
t
.
head
)
# f @at2
f2
.
assertCache
([
0
,
0
,
1
,
0
])
f2
.
assertData
([
''
,
''
,
'2
γ'
,
'2δ
'
])
# XXX mtime=at2
f2
.
assertData
([
''
,
''
,
'2
c'
,
'2d
'
])
# XXX mtime=at2
# f @at1
f1
.
assertCache
([
1
,
1
,
1
])
f1
.
assertData
([
''
,
''
,
'1
γ
'
])
# XXX + mtime=at1?
f1
.
assertData
([
''
,
''
,
'1
cc
'
])
# XXX + mtime=at1?
# >>> f close / open again -> cache must not be lost
...
...
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