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
05e3d50a
Commit
05e3d50a
authored
May 26, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b1aba2bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+3
-5
No files found.
wcfs/testprog/treegen.py
View file @
05e3d50a
...
@@ -185,8 +185,6 @@ def Trees(zstor, r):
...
@@ -185,8 +185,6 @@ def Trees(zstor, r):
print
(
"txn %s -> tree(%s) %s"
%
(
ashex
(
tid
),
ashex
(
ztree
.
_p_oid
),
treetxt
))
print
(
"txn %s -> tree(%s) %s"
%
(
ashex
(
tid
),
ashex
(
ztree
.
_p_oid
),
treetxt
))
# AllStructs generates subset of all possible tree changes in
# AllStructs generates subset of all possible tree changes in
# between kv1 and kv2. See top-level documentation for details.
# between kv1 and kv2. See top-level documentation for details.
@
func
@
func
...
@@ -214,8 +212,8 @@ def AllStructs(zstor, kv1txt, kv2txt, n, seed=None):
...
@@ -214,8 +212,8 @@ def AllStructs(zstor, kv1txt, kv2txt, n, seed=None):
t2AllStructs
=
list
(
xbtree
.
AllStructs
(
kv2
.
keys
(),
maxdepth
,
maxsplit
))
t2AllStructs
=
list
(
xbtree
.
AllStructs
(
kv2
.
keys
(),
maxdepth
,
maxsplit
))
# create the tree
# create the tree
ztree
=
zctx
.
root
[
'treegen/tree'
]
=
XLOTree
()
# XXX -> treegen/allstructs ?
ztree
=
zctx
.
root
[
'treegen/
allstructs/
tree'
]
=
XLOTree
()
# XXX -> treegen/allstructs ?
commit
(
'treegen/tree'
)
commit
(
'treegen/
allstructs: init
tree'
)
# XXX print something?
# XXX print something?
# emit patches ztree with delta, adjusts tree structure and emits corresponding commit.
# emit patches ztree with delta, adjusts tree structure and emits corresponding commit.
...
@@ -225,7 +223,7 @@ def AllStructs(zstor, kv1txt, kv2txt, n, seed=None):
...
@@ -225,7 +223,7 @@ def AllStructs(zstor, kv1txt, kv2txt, n, seed=None):
if
treeTopo
is
not
None
:
if
treeTopo
is
not
None
:
xbtree
.
Restructure
(
ztree
,
treeTopo
)
xbtree
.
Restructure
(
ztree
,
treeTopo
)
ttxt
=
zctx
.
ztreetxt
(
ztree
)
ttxt
=
zctx
.
ztreetxt
(
ztree
)
tid
=
commit
(
'%s -> %s'
%
(
ttxt_prev
,
ttxt
))
tid
=
commit
(
'
treegen/allstructs:
%s -> %s'
%
(
ttxt_prev
,
ttxt
))
print
(
'txn %s # %s -> %s'
%
(
ashex
(
tid
),
ttxt_prev
,
ttxt
))
print
(
'txn %s # %s -> %s'
%
(
ashex
(
tid
),
ttxt_prev
,
ttxt
))
for
(
k
,
v
)
in
delta
:
for
(
k
,
v
)
in
delta
:
vtxt
=
'ø'
vtxt
=
'ø'
...
...
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