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
43c8fab1
Commit
43c8fab1
authored
Jun 19, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
62bd1f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
wcfs/δbtail.go
wcfs/δbtail.go
+5
-1
No files found.
wcfs/δbtail.go
View file @
43c8fab1
...
...
@@ -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
,
δZT
C
)
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.
...
...
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