Commit 81bd3481 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent cc586595
......@@ -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 LOBTree but with small max tree and bucket node sizes.
class XLOTree(LOBTree):
#_bucket_type = XLOBucket
max_leaf_size = 2
......
......@@ -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)
......
#!/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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment