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
b2bd316e
Commit
b2bd316e
authored
4 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4b5d1ba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+2
-1
No files found.
wcfs/testprog/treegen.py
View file @
b2bd316e
...
...
@@ -153,6 +153,7 @@ def Trees(zstor, r):
treetxt
=
treetxt
.
rstrip
()
# trim trailin \n
tree
=
zctx
.
TopoDecode
(
treetxt
)
ztree
=
trees
[
treetxt
]
=
XLOTree
()
zctx
.
zconn
.
add
(
ztree
)
# so that restructure can see we are working under zconn
# tree[k]=v for all k
# do tree.keys() via walkBFS
...
...
@@ -168,7 +169,7 @@ def Trees(zstor, r):
# restructure to requested topology
xbtree
.
Restructure
(
ztree
,
tree
)
tid
=
commit
(
treetxt
)
tid
=
commit
(
"treegen/trees: %s"
%
treetxt
)
# XXX print more details
print
(
"txn %s -> tree(%s) %s"
%
(
ashex
(
tid
),
ashex
(
ztree
.
_p_oid
),
treetxt
))
...
...
This diff is collapsed.
Click to expand 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