Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
c0d4586b
Commit
c0d4586b
authored
Mar 14, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b542beeb
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
202 additions
and
198 deletions
+202
-198
t/neo/storage/fs1/cmd/fstail/fstail.go
t/neo/storage/fs1/cmd/fstail/fstail.go
+1
-1
t/neo/storage/fs1/cmd/fstail/testdata/1.fsdump.ok
t/neo/storage/fs1/cmd/fstail/testdata/1.fsdump.ok
+59
-59
t/neo/storage/fs1/py/gen-testdata
t/neo/storage/fs1/py/gen-testdata
+10
-6
t/neo/storage/fs1/testdata/1.fs
t/neo/storage/fs1/testdata/1.fs
+0
-0
t/neo/storage/fs1/testdata/1.fs.index
t/neo/storage/fs1/testdata/1.fs.index
+0
-0
t/neo/storage/fs1/testdata_expect_test.go
t/neo/storage/fs1/testdata_expect_test.go
+131
-131
t/neo/zodb/cmd/zodbdump/testdata/1.zdump.pyok
t/neo/zodb/cmd/zodbdump/testdata/1.zdump.pyok
+0
-0
t/neo/zodb/cmd/zodbdump/zodbdump_test.go
t/neo/zodb/cmd/zodbdump/zodbdump_test.go
+1
-1
No files found.
t/neo/storage/fs1/cmd/fstail/fstail.go
View file @
c0d4586b
...
...
@@ -38,7 +38,7 @@ import (
// pyQuote quotes string the way python would do it
// specifically quote char is ' (not " as in go)
// XXX s = 'a\'bc'; print repr(s) -> "a'bc" (not 'a\'bc'
// XXX s = 'a\'bc'; print repr(s) -> "a'bc" (not 'a\'bc'
<- XXX fix this
func
pyQuote
(
s
string
)
string
{
out
:=
pyQuoteBytes
(
mem
.
Bytes
(
s
))
return
mem
.
String
(
out
)
...
...
t/neo/storage/fs1/cmd/fstail/testdata/1.fsdump.ok
View file @
c0d4586b
1979-01-03 21:01:31.300002: hash=
ae95b81aacea7df69641c468891dd2321736a1e
5
user=
'root1\nYour\nRoyal\nMagesty ' description='delete 1\nalpha beta gamma\n\nqqq ...' length=192 offset=11934 (+142
)
1979-01-03 21:01:31.300002: hash=
9176cad01fe2751a2317912476da043f2cd2708
5
user=
"root1\nYour\nRoyal\nMagesty' " description='delete 1\nalpha beta gamma\'delta"lambda\n\nqqq ...' length=206 offset=11948 (+156
)
1979-01-03 21:01:30.200002: hash=
5febc59008859e0bab6bdeb9fd876d002af0c922
user='' description='predelete 6' length=362 offset=115
64
(+34)
1979-01-03 21:01:30.200002: hash=
4c2bcec885530156e134f089e7255a0ad1f2eab0
user='' description='predelete 6' length=362 offset=115
78
(+34)
1979-01-03 21:01:29.100002: hash=
0360220321f1f6ee085b9b6f44512c7c0b1e1094
user='root1.1\nYour\nMagesty ' description='undo 1.1\nmore detailed description\n\nzzz ...\t\t' length=208 offset=113
48
(+158)
1979-01-03 21:01:29.100002: hash=
fd3148ac612b6ec793747165c73ce236a3b61702
user='root1.1\nYour\nMagesty ' description='undo 1.1\nmore detailed description\n\nzzz ...\t\t' length=208 offset=113
62
(+158)
1979-01-03 21:01:28.000002: hash=
d477644de8e45016e039bf4510a8e822460f5654
user='root1.0\nYour\nMagesty ' description='undo 1.0\nmore detailed description\n\nzzz ...\t' length=207 offset=111
33
(+157)
1979-01-03 21:01:28.000002: hash=
ef9928d3049ad902a5d98293d46358cea8f44319
user='root1.0\nYour\nMagesty ' description='undo 1.0\nmore detailed description\n\nzzz ...\t' length=207 offset=111
47
(+157)
1979-01-03 21:01:25.800002: hash=
8735a7c5ecf4568bb4ecdd1bdbf4144dad9d9a1b
user='user1.24' description='step 1.24' length=165 offset=109
60
(+93)
1979-01-03 21:01:25.800002: hash=
bc4c742d2821d463ffad5348f6c86d4ed44996cf
user='user1.24' description='step 1.24' length=165 offset=109
74
(+93)
1979-01-03 21:01:24.700002: hash=
fffc4d3ed8ebf888ed6b87ea149b12fde7072257
user='user1.23' description='step 1.23' length=165 offset=10
787
(+93)
1979-01-03 21:01:24.700002: hash=
ad2bfa76c1c7288f99831397715d120a84ac3e63
user='user1.23' description='step 1.23' length=165 offset=10
801
(+93)
1979-01-03 21:01:23.600002: hash=
283d46a7291eee3574a1fa43e09503ff2f98c014
user='user1.22' description='step 1.22' length=165 offset=106
14
(+93)
1979-01-03 21:01:23.600002: hash=
722921c9dd036f270f505d4e1645a63b62f6bac1
user='user1.22' description='step 1.22' length=165 offset=106
28
(+93)
1979-01-03 21:01:22.500002: hash=
b90bf29bf3376cfdd96a70c8c3447ad9cd7915fe
user='user1.21' description='step 1.21' length=165 offset=104
41
(+93)
1979-01-03 21:01:22.500002: hash=
f22d4cdd01d17a66d53e8727b1305c227983b194
user='user1.21' description='step 1.21' length=165 offset=104
55
(+93)
1979-01-03 21:01:21.400002: hash=
28677e54cd94cd2a34ae58b97dcbf9ba1c96e94
9
user='user1.20' description='step 1.20' length=165 offset=102
68
(+93)
1979-01-03 21:01:21.400002: hash=
e3c412c26b6522c046bdfe630eef32451b50ba6
9
user='user1.20' description='step 1.20' length=165 offset=102
82
(+93)
1979-01-03 21:01:20.300002: hash=
6a302f6e27f48d28b515cb4ebf164d58bf9f1cd6
user='user1.19' description='step 1.19' length=165 offset=10
095
(+93)
1979-01-03 21:01:20.300002: hash=
54cdd59a7131c0784bb3236471d857ed6f33f9b9
user='user1.19' description='step 1.19' length=165 offset=10
109
(+93)
1979-01-03 21:01:19.200002: hash=
18145b4716acc1a33c13c164595d381bc7b474ee
user='user1.18' description='step 1.18' length=165 offset=99
22
(+93)
1979-01-03 21:01:19.200002: hash=
20a4abf3c8a0984798374af5ed890e2910f46265
user='user1.18' description='step 1.18' length=165 offset=99
36
(+93)
1979-01-03 21:01:18.100002: hash=
1cfe8e357e75e15037154891ec847b5a0dddeabd
user='user1.17' description='step 1.17' length=165 offset=97
49
(+93)
1979-01-03 21:01:18.100002: hash=
a7c66e66a6e25cafe9b046b5a41993287ba3e296
user='user1.17' description='step 1.17' length=165 offset=97
63
(+93)
1979-01-03 21:01:17.000002: hash=
6d3b0999cb9f6c4a8367e5f492ca22445d8946f0
user='user1.16' description='step 1.16' length=165 offset=95
76
(+93)
1979-01-03 21:01:17.000002: hash=
a69f094230ca875a963524c93a35d23f0687308d
user='user1.16' description='step 1.16' length=165 offset=95
90
(+93)
1979-01-03 21:01:15.900002: hash=
30b720f0ab11edd5a74e55b4314ccc5782f04b79
user='user1.15' description='step 1.15' length=165 offset=94
03
(+93)
1979-01-03 21:01:15.900002: hash=
96316e0682da99e24c5d587b4bd4d2f3150eea8b
user='user1.15' description='step 1.15' length=165 offset=94
17
(+93)
1979-01-03 21:01:14.800002: hash=
5c4ccfee8f185b55d406d73a4d7661736bf2ed51
user='user1.14' description='step 1.14' length=165 offset=92
30
(+93)
1979-01-03 21:01:14.800002: hash=
da20e7ad9c0f55e7576dba5ffd9912c37d059232
user='user1.14' description='step 1.14' length=165 offset=92
44
(+93)
1979-01-03 21:01:13.700002: hash=
7f174a1329e8bd2e844e938d0f488c17dac6c181
user='user1.13' description='step 1.13' length=165 offset=90
57
(+93)
1979-01-03 21:01:13.700002: hash=
877241dc4a5f14d24a7779917310332f6c2e414e
user='user1.13' description='step 1.13' length=165 offset=90
71
(+93)
1979-01-03 21:01:12.600002: hash=
94f8601abc1b14aa1bc046278a64e1fa030173ba
user='user1.12' description='step 1.12' length=165 offset=88
84
(+93)
1979-01-03 21:01:12.600002: hash=
321ea792b7e67ac9339de238e817ca639d7f42ec
user='user1.12' description='step 1.12' length=165 offset=88
98
(+93)
1979-01-03 21:01:11.500002: hash=
ba816c6a0df59b7de877267e2bcb9358c7965e2d
user='user1.11' description='step 1.11' length=165 offset=87
11
(+93)
1979-01-03 21:01:11.500002: hash=
6b64527e3ba109266a8d68321147d54af8d6edc7
user='user1.11' description='step 1.11' length=165 offset=87
25
(+93)
1979-01-03 21:01:10.400002: hash=
07d37a188dc78f4a9ae6959fa15d0118a83ed307
user='user1.10' description='step 1.10' length=165 offset=85
38
(+93)
1979-01-03 21:01:10.400002: hash=
a5db043429fc63d48df1922ab60f3e6990d3561c
user='user1.10' description='step 1.10' length=165 offset=85
52
(+93)
1979-01-03 21:01:09.300001: hash=
f635079876c434af769286ff66e88770a26e85a9
user='user1.9' description='step 1.9' length=162 offset=83
68
(+91)
1979-01-03 21:01:09.300001: hash=
200139e7913a7ff53a34c6f5484b92128b246cde
user='user1.9' description='step 1.9' length=162 offset=83
82
(+91)
1979-01-03 21:01:08.200001: hash=
aa51431bcc1edecf5edde4d313935b9b7a4990f1
user='user1.8' description='step 1.8' length=162 offset=8
198
(+91)
1979-01-03 21:01:08.200001: hash=
39dfd11d1f24fb97387aeabf2a013f6ede6385dd
user='user1.8' description='step 1.8' length=162 offset=8
212
(+91)
1979-01-03 21:01:07.100001: hash=
8645d91242e4cf08ebf7872a57b7f7bcc8fdbc96
user='user1.7' description='step 1.7' length=162 offset=80
28
(+91)
1979-01-03 21:01:07.100001: hash=
9f7327cd475602bca99bf085aabf6051f2573313
user='user1.7' description='step 1.7' length=162 offset=80
42
(+91)
1979-01-03 21:01:06.000001: hash=
cdb959db250d5c2e85ea140783e9334eb01cfbba
user='user1.6' description='step 1.6' length=162 offset=78
58
(+91)
1979-01-03 21:01:06.000001: hash=
735edd1e61556098b0268dee9df1cae6a66aa938
user='user1.6' description='step 1.6' length=162 offset=78
72
(+91)
1979-01-03 21:01:04.900001: hash=
83cb769eba36d0a5dc5447e4b46ddd138fe6fdd8
user='user1.5' description='step 1.5' length=162 offset=7
688
(+91)
1979-01-03 21:01:04.900001: hash=
43863e7c4b4fb3f1bd400248d71fabbdac9456b6
user='user1.5' description='step 1.5' length=162 offset=7
702
(+91)
1979-01-03 21:01:03.800001: hash=
cf85f6460da24c29e48981c5f22672b362135b4e
user='user1.4' description='step 1.4' length=162 offset=75
18
(+91)
1979-01-03 21:01:03.800001: hash=
22ee061f2372fd74d03cf5dd54197bc3aa12a816
user='user1.4' description='step 1.4' length=162 offset=75
32
(+91)
1979-01-03 21:01:02.700001: hash=
f228f0b0142dc39ccfe7326422d625d68763e6ee
user='user1.3' description='step 1.3' length=162 offset=73
48
(+91)
1979-01-03 21:01:02.700001: hash=
be00cfff67f8f186cce0efb4be7af5525a8fdda7
user='user1.3' description='step 1.3' length=162 offset=73
62
(+91)
1979-01-03 21:01:01.600001: hash=
df413d5a85f1170bea04abe17bb02077c1b9ea7c
user='user1.2' description='step 1.2' length=162 offset=71
78
(+91)
1979-01-03 21:01:01.600001: hash=
152e5811cc260c0e9c28cf6bc0c5fb5c147b4daa
user='user1.2' description='step 1.2' length=162 offset=71
92
(+91)
1979-01-03 21:01:00.500001: hash=
a2f2f9980060b3f9d668ab68d33c6c27e202b019
user='user1.1' description='step 1.1' length=162 offset=70
08
(+91)
1979-01-03 21:01:00.500001: hash=
16e51f130683d896e8d182ebdd3bb80ae35d6050
user='user1.1' description='step 1.1' length=162 offset=70
22
(+91)
1979-01-03 21:00:59.400001: hash=
8618d58f2201169d9e0ea7e4627a6ba4dd4bd142
user='user1.0' description='step 1.0' length=162 offset=68
38
(+91)
1979-01-03 21:00:59.400001: hash=
17453ac2d8f8044d959f763516b56eda268e96ad
user='user1.0' description='step 1.0' length=162 offset=68
52
(+91)
1979-01-03 21:00:45.100001: hash=51db603ba9898da20dbe162dd20e4a76aeacbfeb
user=
'root0\nYour\nRoyal\nMagesty ' description='delete 0\nalpha beta gamma\n\nqqq ...' length=192 offset=6638 (+142
)
user=
"root0\nYour\nRoyal\nMagesty' " description='delete 0\nalpha beta gamma\'delta"lambda\n\nqqq ...' length=206 offset=6638 (+156
)
1979-01-03 21:00:44.000001: hash=469f380f59f9a72dae5ee6351fa2e38efb170d86
user='' description='predelete 7' length=362 offset=6268 (+34)
...
...
t/neo/storage/fs1/py/gen-testdata
View file @
c0d4586b
...
...
@@ -29,10 +29,14 @@ def hex64(packed):
# escape string into valid "..." string
def
escapeqq
(
s
):
# this escape almost everything except " character
q
=
s
.
encode
(
"string_escape"
)
q
=
q
.
replace
(
'"'
,
r'\"'
)
return
'"'
+
q
+
'"'
outv
=
[]
# we don't want ' to be escaped
for
_
in
s
.
split
(
"'"
):
# this escape almost everything except " character
q
=
_
.
encode
(
"string_escape"
)
q
=
q
.
replace
(
'"'
,
r'\"'
)
outv
.
append
(
q
)
return
'"'
+
"'"
.
join
(
outv
)
+
'"'
# make time.time() predictable
_xtime
=
time
.
mktime
(
time
.
strptime
(
"04 Jan 1979"
,
"%d %b %Y"
))
...
...
@@ -150,8 +154,8 @@ def main():
# Get serial via history.
obj_tid_lastchange
=
db
.
history
(
obj
.
_p_oid
)[
0
][
'tid'
]
txn
=
precommit
(
u"root%i
\
n
Your
\
n
Royal
\
n
Magesty "
%
i
,
u"delete %i
\
n
alpha beta gamma
\
n
\
n
qqq ..."
%
i
,
txn
=
precommit
(
u"root%i
\
n
Your
\
n
Royal
\
n
Magesty
'
"
%
i
,
u"delete %i
\
n
alpha beta gamma
'delta
\
"
lambda
\
n
\
n
qqq ..."
%
i
,
ext
(
"delete %s"
%
unpack64
(
obj
.
_p_oid
)))
stor
.
tpc_begin
(
txn
)
stor
.
deleteObject
(
obj
.
_p_oid
,
obj_tid_lastchange
,
txn
)
...
...
t/neo/storage/fs1/testdata/1.fs
View file @
c0d4586b
No preview for this file type
t/neo/storage/fs1/testdata/1.fs.index
View file @
c0d4586b
No preview for this file type
t/neo/storage/fs1/testdata_expect_test.go
View file @
c0d4586b
This diff is collapsed.
Click to expand it.
t/neo/zodb/cmd/zodbdump/testdata/1.zdump.pyok
View file @
c0d4586b
No preview for this file type
t/neo/zodb/cmd/zodbdump/zodbdump_test.go
View file @
c0d4586b
...
...
@@ -2,7 +2,7 @@
package
main
//go:generate sh -c "python2 -m zodbtool.zodbdump testdata/1.conf >testdata/1.zdump.pyok"
//go:generate sh -c "python2 -m zodbtool
s
.zodbdump testdata/1.conf >testdata/1.zdump.pyok"
import
(
"bytes"
...
...
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