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
81bd3481
Commit
81bd3481
authored
May 22, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cc586595
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
3 deletions
+39
-3
wcfs/internal/xbtree_test.py
wcfs/internal/xbtree_test.py
+1
-1
wcfs/testprog/treedelta-genallstructs.py
wcfs/testprog/treedelta-genallstructs.py
+2
-2
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+36
-0
No files found.
wcfs/internal/xbtree_test.py
View file @
81bd3481
...
...
@@ -375,7 +375,7 @@ class XBlk(Persistent):
return
'X%s'
%
self
.
data
__repr__
=
__str__
# XLOTree is like LOTree but with small max tree and bucket node sizes.
# XLOTree is like LO
B
Tree but with small max tree and bucket node sizes.
class
XLOTree
(
LOBTree
):
#_bucket_type = XLOBucket
max_leaf_size
=
2
...
...
wcfs/testprog/treedelta-genallstructs.py
View file @
81bd3481
...
...
@@ -73,8 +73,8 @@ from BTrees import LOBTree
LOBTree
.
LOBTree
=
XLOTree
# treedeltaGenAllStructs generates subset of all possible tree changes in
between kv1 and kv2.
# See top-level documentation for details.
# treedeltaGenAllStructs generates subset of all possible tree changes in
#
between kv1 and kv2.
See top-level documentation for details.
@
func
def
treedeltaGenAllStructs
(
zstor
,
kv1txt
,
kv2txt
,
n
,
seed
=
None
):
db
=
DB
(
zstor
);
defer
(
db
.
close
)
...
...
wcfs/testprog/treegen.py
0 → 100644
View file @
81bd3481
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2020 Nexedi SA and Contributors.
# Kirill Smelkov <kirr@nexedi.com>
#
# This program is free software: you can Use, Study, Modify and Redistribute
# it under the terms of the GNU General Public License version 3, or (at your
# option) any later version, as published by the Free Software Foundation.
#
# You can also Link and Combine this program with other software covered by
# the terms of any of the Free Software licenses or any of the Open Source
# Initiative approved licenses and Convey the resulting work. Corresponding
# source of such a combination shall include the source code for all other
# software used.
#
# This program is distributed WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See COPYING file for full licensing terms.
# See https://www.nexedi.com/licensing for rationale and options.
"""Program treegen generates tree states ..."""
# XXX input of known tricky cases from ΔBTree test driver
# tree1 (with values)
# tree2
# ...
# | treegen
#
# a zodb tree goes through treei states
# every state is committed as separate transaction & printed in the same
# formate as treedelta-genallstructs.py does
# XXX move all into treegen? ex. `treegen allstructs n kv1 kv2`
# `treegen trees tree1 tree2 ... or stdin` ?
# -> NOTE we'll need to topodecode with values here
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