Commit aecd4dfd authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 514d7f7b
......@@ -187,7 +187,7 @@ def treedeltaGenAllStructs(zstor, kv1txt, kv2txt, n):
for k in sorted(kv1):
ztree[k] = kv1[k]
ttxt = treetxt(ztree)
commit(ttxt)
tid = commit(ttxt)
# XXX print txnδ
t1struct0 = xbtree.StructureOf(ztree)
......@@ -195,7 +195,7 @@ def treedeltaGenAllStructs(zstor, kv1txt, kv2txt, n):
patch(ztree, diff12, verify=kv2)
ttxt_prev = ttxt
ttxt = treetxt(ztree)
commit('%s -> %s' % (ttxt_prev, ttxt))
tid = commit('%s -> %s' % (ttxt_prev, ttxt))
# XXX printδ
t2struct0 = xbtree.StructureOf(ztree)
......@@ -224,6 +224,11 @@ def treedeltaGenAllStructs(zstor, kv1txt, kv2txt, n):
ttxt = treetxt(ztree)
tid = commit('%s -> %s' % (ttxt_prev, ttxt))
print('txn %s # %s -> %s' % (ashex(tid), ttxt_prev, ttxt))
for (k,v) in delta:
vtxt = 'ø'
if v is not DEL:
vtxt = vencode(v)
print('\t%d:%s' % (k,vtxt)) # XXX print not only +, but also - (e.g. -1:a +1:b) ?
......
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