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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
d85478ac
Commit
d85478ac
authored
8 years ago
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
1b6108ba
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
178 additions
and
147 deletions
+178
-147
t/neo/storage/fs1/py/gen-testdata
t/neo/storage/fs1/py/gen-testdata
+3
-8
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
+175
-139
No files found.
t/neo/storage/fs1/py/gen-testdata
View file @
d85478ac
...
...
@@ -31,18 +31,13 @@ def xtime():
time
.
time
=
xtime
def
_pre
commit
(
user
,
description
,
extension
):
def
commit
(
user
,
description
,
extension
):
txn
=
transaction
.
get
()
txn
.
user
=
user
txn
.
description
=
description
txn
.
extension
=
extension
def
commit
(
user
,
description
,
extension
):
_precommit
(
user
,
description
,
extension
)
txn
=
transaction
.
get
()
txn
.
commit
()
class
Object
(
Persistent
):
# .value
def
__init__
(
self
,
value
):
...
...
@@ -83,9 +78,9 @@ def main():
# undo a transaction one step before a latest one a couple of times
for
j
in
range
(
2
):
ul
=
db
.
undoLog
(
1
+
j
,
2
+
j
)[
0
]
_precommit
(
u"root%i.%i"
%
(
i
,
j
),
u"undo %i.%i"
%
(
i
,
j
),
{
"x-generator"
:
"zodb/py2 (undo %s)"
%
ul
[
"id"
]})
ul
=
db
.
undoLog
(
1
,
2
)[
0
]
db
.
undo
(
ul
[
"id"
])
commit
(
u"root%i.%i"
%
(
i
,
j
),
u"undo %i.%i"
%
(
i
,
j
),
{
"x-generator"
:
"zodb/py2 (undo %s)"
%
ul
[
"id"
]})
conn
.
close
()
db
.
close
()
...
...
This diff is collapsed.
Click to expand it.
t/neo/storage/fs1/testdata/1.fs
View file @
d85478ac
No preview for this file type
This diff is collapsed.
Click to expand it.
t/neo/storage/fs1/testdata/1.fs.index
View file @
d85478ac
No preview for this file type
This diff is collapsed.
Click to expand it.
t/neo/storage/fs1/testdata_expect_test.go
View file @
d85478ac
This diff is collapsed.
Click to expand it.
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