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
bb668af3
Commit
bb668af3
authored
Apr 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8dcdc4e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
wcfs/δftail.go
wcfs/δftail.go
+26
-2
No files found.
wcfs/δftail.go
View file @
bb668af3
...
...
@@ -176,9 +176,33 @@ func (δFtail *ΔFtail) SliceByFileRev(file *BigFile, lo, hi zodb.Tid) /*readonl
// XXX activate zfile?
vδT
:=
δFtail
.
δBtail
.
SliceByRootRev
(
file
.
zfile
.
blktab
,
lo
,
hi
)
//kv = kvAtTail
vδZ
:=
δFtail
.
δBtail
.
δZtail
.
SliceByRev
(
lo
,
hi
)
// state of `{} blk -> zblk` at current change
δblktab
:=
map
[
int64
]
zodb
.
Oid
{}
zblkBoundTo
:=
map
[
zodb
.
Oid
]
SetI64
// {} zblk -> {}blk
iz
:=
len
(
vδZ
)
-
1
it
:=
len
(
vδT
)
-
1
for
(
iz
>=
0
&&
it
>=
0
)
{
// XXX -> ||
δZ
:=
vδZ
[
iz
]
δT
:=
vδT
[
it
]
if
δZ
.
Rev
>=
δT
.
Rev
{
for
_
,
oid
:=
range
δZ
.
Changev
{
// XXX oid -> tracked ZBlk?
// ZBlk -> bound to {}blk @head
for
blk
:=
range
boundToAtHead
{
if
!
δblktab
.
Has
(
blk
)
{
δblktab
[
blk
]
=
oid
}
}
}
}
if
δT
.
Rev
>=
δZ
.
Rev
{
...
}
}
_
=
vδT
panic
(
"TODO"
)
}
...
...
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