Commit 43c8fab1 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 62bd1f5e
......@@ -332,6 +332,7 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid
// XXX δZT -> δZT* (all changed nodes are connected)
// e.g. t₀->t₁->b₂ δZ={t₀ b₂} -> δZ*=δZ+{t₁}
δZTC := δZT // FIXME stub
δT = map[Key]Value{}
......@@ -359,7 +360,7 @@ func (δBtail *ΔBtail) treediff(ctx context.Context, root zodb.Oid, δZT SetOid
case *Tree:
fmt.Printf(" T%s\n", a.POid())
b := xb.(*Tree) // must not fail
δtop, err = diffT(ctx, a, b, δZT*)
δtop, err = diffT(ctx, a, b, δZTC)
case *Bucket:
fmt.Printf(" B%s\n", a.POid())
......@@ -435,6 +436,9 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid) (δ map[Key]Value, err
for child := range mod { // XXX sorted ?
}
return δ, nil
}
// diffB computes difference in between two revisions of a bucket.
......
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