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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
8be186ba
Commit
8be186ba
authored
Apr 17, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
00b1a6ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wcfs/δbtail.go
wcfs/δbtail.go
+13
-0
No files found.
wcfs/δbtail.go
View file @
8be186ba
...
...
@@ -143,6 +143,14 @@ func NewΔBtail(at0 zodb.Tid) *ΔBtail {
}
}
// XXX
func
newΔTtail
()
*
ΔTreeTail
{
return
&
ΔTreeTail
{
KVAtTail
:
make
(
map
[
Key
]
Value
),
lastRevOf
:
make
(
map
[
Key
]
zodb
.
Tid
),
}
}
// Head is similar to zodb.ΔTail.Head . XXX ok?
func
(
δBtail
*
ΔBtail
)
Head
()
zodb
.
Tid
{
//return δb.head
...
...
@@ -187,6 +195,11 @@ func (δBtail *ΔBtail) Track(path []Node) { // XXX Tree|Bucket; path[0] = root
nodeRoots
.
Add
(
root
)
}
_
,
ok
:=
δBtail
.
byRoot
[
root
]
if
!
ok
{
δBtail
.
byRoot
[
root
]
=
newΔTtail
()
}
// XXX update diff XXX here? or as separate step?
// XXX update lastRevOf
}
...
...
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