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
89b1ed4e
Commit
89b1ed4e
authored
Jun 05, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8f149d40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+4
-4
No files found.
wcfs/testprog/treegen.py
View file @
89b1ed4e
...
...
@@ -151,10 +151,10 @@ class ZCtx(object):
raise
KeyError
(
"%r not found in value registry"
%
(
vobj
,))
# Trees generates tree structures given their topology encoding on input.
# Trees
Srv
generates tree structures given their topology encoding on input.
# See top-level documentation for details.
@
func
def
Trees
(
zstor
,
r
):
def
Trees
Srv
(
zstor
,
r
):
zctx
=
ZCtx
(
zstor
)
defer
(
zctx
.
close
)
...
...
@@ -247,7 +247,7 @@ def AllStructs(kv1txt, kv2txt, maxdepth, maxsplit, n, seed=None):
# initial kv1 and kv2 states with topologies prepared as ZODB would do natively
patch
(
ztree
,
diff
({},
kv1
),
verify
=
kv1
)
if
kv1
==
{}:
ztree
.
_p_changed
=
True
# to avoid empty commit - see Trees
if
kv1
==
{}:
ztree
.
_p_changed
=
True
# to avoid empty commit - see Trees
Srv
commit
(
'kv1'
)
t1struct0
=
xbtree
.
StructureOf
(
ztree
)
...
...
@@ -444,7 +444,7 @@ def cmd_trees(argv):
if
len
(
treev
)
!=
0
:
r
=
six
.
StringIO
(
'
\
n
'
.
join
(
treev
))
Trees
(
zstor
,
r
)
Trees
Srv
(
zstor
,
r
)
# xprint prints msg to stdout and flushes it.
...
...
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