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
4271fed4
Commit
4271fed4
authored
Jun 24, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9931f97e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+9
-2
No files found.
wcfs/wcfs_test.py
View file @
4271fed4
...
...
@@ -256,7 +256,14 @@ class tDB:
# commit commits transaction and makes sure wcfs is synchronized to it.
#
# It updates .dFtail and returns committed transaction ID.
def
commit
(
t
):
#
# zf and changeDelta can be optionally provided, in which case .change(zf,
# changeDelta) call is made before actually committing.
def
commit
(
t
,
zf
=
None
,
changeDelta
=
None
):
if
zf
is
not
None
:
assert
changeDelta
is
not
None
t
.
change
(
zf
,
changeDelta
)
# perform modifications scheduled by change.
# use !wcfs mode so that we prepare data independently of wcfs code paths.
dF
=
DF
()
...
...
@@ -1338,7 +1345,7 @@ def test_wcfs_watch_setup():
defer
(
t
.
close
)
f
=
t
.
open
(
zf
)
t
.
change
(
zf
,
{
2
:
'c1'
});
at1
=
t
.
commit
(
)
at1
=
t
.
commit
(
zf
,
{
2
:
'c1'
}
)
t
.
change
(
zf
,
{
2
:
'c2'
,
3
:
'd2'
,
5
:
'f2'
});
at2
=
t
.
commit
()
t
.
change
(
zf
,
{
2
:
'c3'
,
5
:
'f3'
});
at3
=
t
.
commit
()
...
...
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