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
fb35f696
Commit
fb35f696
authored
Apr 30, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ef6d0669
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
wcfs/wcfs_test.py
wcfs/wcfs_test.py
+12
-12
No files found.
wcfs/wcfs_test.py
View file @
fb35f696
...
@@ -152,6 +152,16 @@ class tDB:
...
@@ -152,6 +152,16 @@ class tDB:
t
.
wc
.
close
()
t
.
wc
.
close
()
dbclose
(
t
.
root
)
dbclose
(
t
.
root
)
# open opens wcfs file corresponding to zf@at and starts to track it.
# see returned tFile for details.
def
open
(
t
,
zf
,
at
=
None
):
# -> tFile
return
tFile
(
t
,
zf
,
at
=
at
)
# openwatch opens /head/watch on wcfs.
# see returned tWatch for details.
def
openwatch
(
t
):
# -> tWatch
return
tWatch
(
t
)
# change schedules zf to be changed according changeDelta at commit.
# change schedules zf to be changed according changeDelta at commit.
#
#
# changeDelta is {} blk -> data.
# changeDelta is {} blk -> data.
...
@@ -189,7 +199,7 @@ class tDB:
...
@@ -189,7 +199,7 @@ class tDB:
t
.
head
=
head
t
.
head
=
head
t
.
_headv
.
append
(
head
)
t
.
_headv
.
append
(
head
)
# sync
wcfs
# sync
hronize wcfs to db
t
.
_wcsync
()
t
.
_wcsync
()
return
head
return
head
...
@@ -239,16 +249,6 @@ class tDB:
...
@@ -239,16 +249,6 @@ class tDB:
path
=
t
.
path
(
obj
,
at
=
at
)
path
=
t
.
path
(
obj
,
at
=
at
)
return
open
(
path
,
mode
,
0
)
# unbuffered
return
open
(
path
,
mode
,
0
)
# unbuffered
# open opens wcfs file corresponding to zf@at and starts to track it.
# see returned tFile for details.
def
open
(
t
,
zf
,
at
=
None
):
# -> tFile
return
tFile
(
t
,
zf
,
at
=
at
)
# openwatch opens /head/watch on wcfs.
# see returned tWatch for details.
def
openwatch
(
t
):
# -> tWatch
return
tWatch
(
t
)
# tFile provides testing environment for one bigfile on wcfs.
# tFile provides testing environment for one bigfile on wcfs.
class
tFile
:
class
tFile
:
...
...
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