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
9d3483ba
Commit
9d3483ba
authored
Jun 21, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1ebb0d4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
wcfs/δbtail.go
wcfs/δbtail.go
+2
-0
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+12
-0
No files found.
wcfs/δbtail.go
View file @
9d3483ba
...
...
@@ -465,6 +465,7 @@ func treediff(ctx context.Context, root zodb.Oid, δZT SetOid, trackIdx map[zodb
// XXX no - not needed here - keys cannot migrate in between two disconnected subtrees
// DEL k -> Tkextra += k
// +k -> Tkextra -= k
fmt
.
Printf
(
"-> δtop: %v
\n
"
,
δtop
)
for
k
,
δv
:=
range
δtop
{
δT
[
k
]
=
δv
}
...
...
@@ -647,6 +648,7 @@ func diffT(ctx context.Context, a, b *Tree, δZTC SetOid, trackIdx map[zodb.Oid]
δv
.
New
=
δv1
.
New
}
fmt
.
Printf
(
" [%v] merge %s %s -> %s
\n
"
,
k
,
δv1
,
δv2
,
δv
)
if
δv
.
Old
!=
δv
.
New
{
δ
[
k
]
=
δv
}
else
{
...
...
wcfs/δbtail_test.go
View file @
9d3483ba
...
...
@@ -1141,3 +1141,15 @@ func sortedKeys(kv map[Key]Δstring) []Key {
})
return
keyv
}
// String is like default %v, but uses ø for VDEL.
func
(
δv
ΔValue
)
String
()
string
{
old
,
new
:=
DEL
,
DEL
if
δv
.
Old
!=
VDEL
{
old
=
δv
.
Old
.
String
()
}
if
δv
.
New
!=
VDEL
{
new
=
δv
.
New
.
String
()
}
return
fmt
.
Sprintf
(
"{%s %s}"
,
old
,
new
)
}
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