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
c13a7bc0
Commit
c13a7bc0
authored
Jun 21, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d741c8c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
wcfs/internal/xbtree/δbtail.go
wcfs/internal/xbtree/δbtail.go
+1
-3
wcfs/internal/xbtree/δbtail_test.go
wcfs/internal/xbtree/δbtail_test.go
+3
-0
No files found.
wcfs/internal/xbtree/δbtail.go
View file @
c13a7bc0
...
...
@@ -516,15 +516,13 @@ func (δBtail *ΔBtail) Update(δZ *zodb.EventCommit) (_ ΔB, err error) {
δTtail
.
trackNew
=
nil
// XXX stub
// XXX vvv we can skip computing diff for HEAD~..HEAD (we just
// computed it)
// computed it
in _Update1
)
δtrackSet
,
err
:=
δTtail
.
rebuild
(
root
,
δBtail
.
δZtail
,
δBtail
.
db
)
if
err
!=
nil
{
return
ΔB
{},
err
}
δBtail
.
trackSet
.
UnionInplace
(
δtrackSet
)
// XXX Update δTKeyCov? XXX or it is needed only to be returned
// from treediff?
}
// build δB. Even if δT=ø after _Update1, but δtkeycov1 != ø, above
...
...
wcfs/internal/xbtree/δbtail_test.go
View file @
c13a7bc0
...
...
@@ -806,6 +806,9 @@ func xverifyΔBTail_Update1(t *testing.T, subj string, db *zodb.DB, treeRoot zod
// δB <- δZ
//
// also call _Update1 directly to verify δtkeycov return from treediff
// the result of Update and _Update1 should be the same since δbtail is initially empty.
δbtail_
:=
δbtail
.
Clone
()
δB
,
err
:=
δbtail
.
Update
(
δZ
);
X
(
err
)
δTKeyCov
,
err
:=
δbtail_
.
_Update1
(
δZ
);
X
(
err
)
...
...
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