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
56d47435
Commit
56d47435
authored
Jul 09, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c0e34350
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
wcfs/internal/xbtree/xbtreetest/treegen.py
wcfs/internal/xbtree/xbtreetest/treegen.py
+9
-3
No files found.
wcfs/internal/xbtree/xbtreetest/treegen.py
View file @
56d47435
...
...
@@ -109,7 +109,11 @@ session example:
# ----
XXX ΔFtail support
ΔFtail support
--------------
XXX
--------
...
...
@@ -202,6 +206,7 @@ def TreesSrv(zstor, r):
ztree
=
zctx
.
root
[
'treegen/tree'
]
=
LOBTree
()
zfile
=
zctx
.
root
[
'treegen/file'
]
=
ZBigFile
(
blksize
=
4
)
# for ΔFtail tests
zfile
.
blktab
=
ztree
zdummy
=
zctx
.
root
[
'treegen/dummy'
]
=
PersistentMapping
()
# anything for ._p_changed=True
head
=
commit
(
'treegen/tree: init'
)
xprint
(
"tree.srv start @%s root=%s"
%
(
ashex
(
head
),
ashex
(
ztree
.
_p_oid
)))
treetxtPrev
=
zctx
.
ztreetxt
(
ztree
)
...
...
@@ -243,16 +248,17 @@ def TreesSrv(zstor, r):
elif
v2
is
None
:
del
valdict
[
k
]
zdummy
.
_p_changed
=
True
# alayws non-empty commit
head
=
commit
(
subj
)
xprint
(
"%s"
%
ashex
(
head
))
continue
# everything else is considerd to be a tree topology
# mark
tree
as changed if the same topology is requested twice.
# mark
something
as changed if the same topology is requested twice.
# this ensures we can actually make a non-empty commit
if
treetxt
==
treetxtPrev
:
z
tree
.
_p_changed
=
True
z
dummy
.
_p_changed
=
True
treetxtPrev
=
treetxt
tree
=
zctx
.
TopoDecode
(
treetxt
)
...
...
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