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
43ba408e
Commit
43ba408e
authored
Apr 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
bb668af3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
wcfs/δftail.go
wcfs/δftail.go
+18
-3
No files found.
wcfs/δftail.go
View file @
43ba408e
...
...
@@ -174,13 +174,28 @@ func (δFtail *ΔFtail) SliceByRev(lo, hi zodb.Tid) /*readonly*/ []ΔF {
func
(
δFtail
*
ΔFtail
)
SliceByFileRev
(
file
*
BigFile
,
lo
,
hi
zodb
.
Tid
)
/*readonly*/
[]
Δfile
{
δassertSlice
(
δFtail
,
lo
,
hi
)
// merging tree (δT) and Zblk (δZblk) histories into file history (δFile):
// δT ────────·──────────────·─────────────────·────────────
// │ │
// ↓ │
// δZblk₁ ────────────────o───────────────────o─────────────────
// |
// ↓
// δZblk₂ ────────────x────────────────x────────────────────────
//
//
// δFile ────────o───────o──────x─────x────────────────────────
// XXX activate zfile?
vδT
:=
δFtail
.
δBtail
.
SliceByRootRev
(
file
.
zfile
.
blktab
,
lo
,
hi
)
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
// state of `{} blk -> zblk` as we are scanning ↓
δblktab
:=
map
[
int64
]
struct
{
zblk
zodb
.
Oid
// blk points to this zblk
lo
,
hi
zodb
.
Tid
// blk points to zblk during [lo, hi)
}{}
iz
:=
len
(
vδZ
)
-
1
it
:=
len
(
vδT
)
-
1
...
...
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