Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
nexedi
ZODB
Commits
57bca1f0
Commit
57bca1f0
authored
May 23, 2003
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add -v option to control whether tracebacks are printed.
parent
e4aaa094
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
src/scripts/fsrefs.py
src/scripts/fsrefs.py
+13
-2
No files found.
src/scripts/fsrefs.py
View file @
57bca1f0
...
@@ -32,6 +32,8 @@ import cStringIO
...
@@ -32,6 +32,8 @@ import cStringIO
import
traceback
import
traceback
import
types
import
types
VERBOSE
=
0
def
get_refs
(
pickle
):
def
get_refs
(
pickle
):
refs
=
[]
refs
=
[]
f
=
cStringIO
.
StringIO
(
pickle
)
f
=
cStringIO
.
StringIO
(
pickle
)
...
@@ -67,7 +69,8 @@ def main(path):
...
@@ -67,7 +69,8 @@ def main(path):
data
,
serial
=
fs
.
load
(
oid
,
""
)
data
,
serial
=
fs
.
load
(
oid
,
""
)
except
:
except
:
print
"oid %s failed to load"
%
hex
(
u64
(
oid
))
print
"oid %s failed to load"
%
hex
(
u64
(
oid
))
traceback
.
print_exc
()
if
VERBOSE
:
traceback
.
print_exc
()
noload
[
oid
]
=
1
noload
[
oid
]
=
1
# XXX If we get here after we've already loaded objects
# XXX If we get here after we've already loaded objects
...
@@ -93,4 +96,12 @@ def main(path):
...
@@ -93,4 +96,12 @@ def main(path):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
import
sys
import
sys
main
(
sys
.
argv
[
1
])
import
getopt
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
"v"
)
for
k
,
v
in
opts
:
if
k
==
"-v"
:
VERBOSE
+=
1
path
,
=
args
main
(
path
)
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