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
ae34d7bc
Commit
ae34d7bc
authored
Jan 24, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a50da567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
wcfs/δtail.go.in
wcfs/δtail.go.in
+7
-1
No files found.
wcfs/δtail.go.in
View file @
ae34d7bc
...
@@ -31,6 +31,10 @@ import (
...
@@ -31,6 +31,10 @@ import (
//
//
//
[](
rev
↑
,
[]
id
)
//
[](
rev
↑
,
[]
id
)
//
//
//
and
index
//
//
{}
id
->
max
(
rev
:
rev
changed
id
)
//
//
where
//
where
//
//
//
rev
-
is
ZODB
revision
,
and
//
rev
-
is
ZODB
revision
,
and
...
@@ -53,7 +57,7 @@ type ΔTail struct {
...
@@ -53,7 +57,7 @@ type ΔTail struct {
lastRevOf
map
[
ID
]
zodb
.
Tid
//
index
for
LastRevOf
queries
lastRevOf
map
[
ID
]
zodb
.
Tid
//
index
for
LastRevOf
queries
//
TODO
also
add
either
tailv
idx
<->
rev
index
,
or
lastRevOf
->
tailv
idx
//
TODO
also
add
either
tailv
idx
<->
rev
index
,
or
lastRevOf
->
tailv
idx
//
(
if
linear
back
-
scan
of
δ
RevEntry
starts
eat
cpu
).
//
(
if
linear
back
-
scan
of
δ
RevEntry
starts
to
eat
cpu
).
}
}
//
δ
RevEntry
represents
information
of
what
have
been
changed
in
one
revision
.
//
δ
RevEntry
represents
information
of
what
have
been
changed
in
one
revision
.
...
@@ -67,6 +71,8 @@ func NewΔTail() *ΔTail {
...
@@ -67,6 +71,8 @@ func NewΔTail() *ΔTail {
return
&
Δ
Tail
{
lastRevOf
:
make
(
map
[
ID
]
zodb
.
Tid
)}
return
&
Δ
Tail
{
lastRevOf
:
make
(
map
[
ID
]
zodb
.
Tid
)}
}
}
//
XXX
+
.
Head
()
->
max
(
rev
)
XXX
or
0
if
len
(
tailv
)
==
0
?
//
XXX
add
way
to
extend
coverage
without
appending
changed
data
?
(
i
.
e
.
if
a
//
XXX
add
way
to
extend
coverage
without
appending
changed
data
?
(
i
.
e
.
if
a
//
txn
did
not
change
file
at
all
)
->
but
then
it
is
simply
.
Append
(
rev
,
nil
)?
//
txn
did
not
change
file
at
all
)
->
but
then
it
is
simply
.
Append
(
rev
,
nil
)?
...
...
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