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
4e6eaf4c
Commit
4e6eaf4c
authored
May 16, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
74e02634
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
25 deletions
+23
-25
wcfs/treediff.go
wcfs/treediff.go
+23
-0
wcfs/δbtail.go
wcfs/δbtail.go
+0
-25
No files found.
wcfs/treediff.go
View file @
4e6eaf4c
...
@@ -934,6 +934,29 @@ func pathEqual(patha, pathb []zodb.Oid) bool {
...
@@ -934,6 +934,29 @@ func pathEqual(patha, pathb []zodb.Oid) bool {
return
true
return
true
}
}
/*
// vtree returns human-readable representation of Tree data.
func vtree(v []TreeEntry) string {
s := ""
for _, e := range v {
if s != "" {
s += " "
}
s += fmt.Sprintf("%v %s", e.Key(), vnode(e.Child()))
}
return s
}
*/
// vnode returns brief human-readable representation of node.
func
vnode
(
node
Node
)
string
{
kind
:=
"?"
switch
node
.
(
type
)
{
case
*
Tree
:
kind
=
"T"
case
*
Bucket
:
kind
=
"B"
}
return
kind
+
node
.
POid
()
.
String
()
}
const
debug
=
false
const
debug
=
false
func
tracef
(
format
string
,
argv
...
interface
{})
{
func
tracef
(
format
string
,
argv
...
interface
{})
{
...
...
wcfs/δbtail.go
View file @
4e6eaf4c
...
@@ -581,28 +581,3 @@ func δassertSlice(δ interface { Head() zodb.Tid; Tail() zodb.Tid }, lo, hi zod
...
@@ -581,28 +581,3 @@ func δassertSlice(δ interface { Head() zodb.Tid; Tail() zodb.Tid }, lo, hi zod
panicf
(
"invalid slice: (%s, %s]; (tail, head] = (%s, %s]"
,
lo
,
hi
,
tail
,
head
)
panicf
(
"invalid slice: (%s, %s]; (tail, head] = (%s, %s]"
,
lo
,
hi
,
tail
,
head
)
}
}
}
}
/*
// vtree returns human-readable representation of Tree data.
func vtree(v []TreeEntry) string {
s := ""
for _, e := range v {
if s != "" {
s += " "
}
s += fmt.Sprintf("%v %s", e.Key(), vnode(e.Child()))
}
return s
}
*/
// vnode returns brief human-readable representation of node.
func
vnode
(
node
Node
)
string
{
kind
:=
"?"
switch
node
.
(
type
)
{
case
*
Tree
:
kind
=
"T"
case
*
Bucket
:
kind
=
"B"
}
return
kind
+
node
.
POid
()
.
String
()
}
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