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
b2b0b6c1
Commit
b2b0b6c1
authored
Sep 22, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5a1bdf50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
wcfs/internal/xbtree/treediff.go
wcfs/internal/xbtree/treediff.go
+2
-1
No files found.
wcfs/internal/xbtree/treediff.go
View file @
b2b0b6c1
...
@@ -396,7 +396,8 @@ func treediff(ctx context.Context, root zodb.Oid, δtops setOid, δZTC setOid, t
...
@@ -396,7 +396,8 @@ func treediff(ctx context.Context, root zodb.Oid, δtops setOid, δZTC setOid, t
// δtkeycov represents how δtrack grows (always grows) tracking set key coverage.
// δtkeycov represents how δtrack grows (always grows) tracking set key coverage.
func
diffX
(
ctx
context
.
Context
,
a
,
b
Node
,
δZTC
setOid
,
trackSet
blib
.
PPTreeSubSet
)
(
δ
map
[
Key
]
ΔValue
,
δtrack
*
blib
.
ΔPPTreeSubSet
,
δtkeycov
*
blib
.
RangedKeySet
,
err
error
)
{
func
diffX
(
ctx
context
.
Context
,
a
,
b
Node
,
δZTC
setOid
,
trackSet
blib
.
PPTreeSubSet
)
(
δ
map
[
Key
]
ΔValue
,
δtrack
*
blib
.
ΔPPTreeSubSet
,
δtkeycov
*
blib
.
RangedKeySet
,
err
error
)
{
if
a
==
nil
&&
b
==
nil
{
if
a
==
nil
&&
b
==
nil
{
panic
(
"BUG: both a & b == nil"
)
// XXX -> not a bug e.g. for `ø ø T` sequence?
// DEL..DEL -> ø diff
return
map
[
Key
]
ΔValue
{},
blib
.
NewΔPPTreeSubSet
(),
&
blib
.
RangedKeySet
{},
nil
}
}
var
aT
,
bT
*
Tree
var
aT
,
bT
*
Tree
...
...
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