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
58933311
Commit
58933311
authored
Sep 09, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8110ab56
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
wcfs/δbtail.go
wcfs/δbtail.go
+8
-5
No files found.
wcfs/δbtail.go
View file @
58933311
...
...
@@ -235,9 +235,9 @@ func (tidx trackIndex) gc1(oid zodb.Oid) {
// ApplyΔ applies δ to trackIdx. XXX
func
(
tidx
trackIndex
)
ApplyΔ
(
δ
*
δtrackIndex
)
{
fmt
.
Printf
(
"
\n\n
ApplyΔ
\n
"
)
fmt
.
Printf
(
"
\t
DelLeaf: %v
\n
"
,
δ
.
DelLeaf
)
fmt
.
Printf
(
"
\t
Add: %v
\n
"
,
δ
.
Add
)
//
fmt.Printf("\n\nApplyΔ\n")
//
fmt.Printf("\tDelLeaf: %v\n", δ.DelLeaf)
//
fmt.Printf("\tAdd: %v\n", δ.Add)
// remove leafs and thier parents
for
leaf
:=
range
δ
.
DelLeaf
{
...
...
@@ -1060,8 +1060,11 @@ func diffT(ctx context.Context, A, B *Tree, δZTC SetOid, trackIdx trackIndex, h
oid
:=
acOid
for
oid
!=
zodb
.
InvalidOid
{
told
:=
trackIdx
[
oid
]
tnew
:=
BtrackIdx
[
oid
]
if
told
.
parent
!=
tnew
.
parent
{
tnew
,
ok
:=
BtrackIdx
[
oid
]
if
!
ok
{
break
}
if
told
==
nil
||
(
told
.
parent
!=
tnew
.
parent
)
{
δtrack
.
Add
[
oid
]
=
&
tnew
// XXX adjust nchildren
}
...
...
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