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
fb35f696
Commit
fb35f696
authored
Apr 30, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ef6d0669
Changes
1
Hide 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:
t
.
wc
.
close
()
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.
#
# changeDelta is {} blk -> data.
...
...
@@ -189,7 +199,7 @@ class tDB:
t
.
head
=
head
t
.
_headv
.
append
(
head
)
# sync
wcfs
# sync
hronize wcfs to db
t
.
_wcsync
()
return
head
...
...
@@ -211,7 +221,7 @@ class tDB:
# path returns path for object on wcfs.
# - str: wcfs root + obj;
# - str:
wcfs root + obj;
# - Persistent: wcfs root + (head|@<at>)/bigfile/obj
def
path
(
t
,
obj
,
at
=
None
):
if
isinstance
(
obj
,
Persistent
):
...
...
@@ -239,16 +249,6 @@ class tDB:
path
=
t
.
path
(
obj
,
at
=
at
)
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.
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