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
6b4e244a
Commit
6b4e244a
authored
May 31, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
e6323dbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
wcfs/testprog/treegen.py
wcfs/testprog/treegen.py
+7
-1
wcfs/δbtail_test.go
wcfs/δbtail_test.go
+2
-1
No files found.
wcfs/testprog/treegen.py
View file @
6b4e244a
...
...
@@ -153,7 +153,7 @@ def Trees(zstor, r):
tree
=
zctx
.
root
[
'treegen/tree'
]
=
XLOTree
()
at0
=
commit
(
'treegen/tree: init'
)
print
(
"start @%s tree=%s"
%
(
ashex
(
at0
),
ashex
(
tree
.
_p_oid
)))
x
print
(
"start @%s tree=%s"
%
(
ashex
(
at0
),
ashex
(
tree
.
_p_oid
)))
while
1
:
treetxt
=
r
.
readline
()
...
...
@@ -406,6 +406,12 @@ def cmd_trees(argv):
Trees
(
zstor
,
sys
.
stdin
)
# xprint prints msg to stdout and flushes it.
def
xprint
(
msg
):
print
(
msg
)
sys
.
stdout
.
flush
()
cmdRegistry
=
{
'allstructs'
:
cmd_allstructs
,
'trees'
:
cmd_trees
,
...
...
wcfs/δbtail_test.go
View file @
6b4e244a
...
...
@@ -86,7 +86,7 @@ func StartTreeGen(zurl string) (_ *TreeGen, err error) {
}
return
nil
,
err
}
defer
xerr
.
Context
(
&
err
,
"invalid start %q"
)
defer
xerr
.
Context
f
(
&
err
,
"invalid start %q"
,
start
)
// start @<at> tree=<root>
startRe
:=
regexp
.
MustCompile
(
`^start @([^ ]+) root=([^ ]+)$`
)
...
...
@@ -103,6 +103,7 @@ func StartTreeGen(zurl string) (_ *TreeGen, err error) {
return
nil
,
fmt
.
Errorf
(
"root: %s"
,
err
)
}
fmt
.
Printf
(
"XXX started @%s root=%s
\n
"
,
tg
.
head
,
tg
.
treeRoot
)
return
tg
,
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