Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
a62ec376
Commit
a62ec376
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
e3116654
Changes
1
Show 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 @
a62ec376
...
...
@@ -32,6 +32,8 @@ import cStringIO
import
traceback
import
types
VERBOSE
=
0
def
get_refs
(
pickle
):
refs
=
[]
f
=
cStringIO
.
StringIO
(
pickle
)
...
...
@@ -67,6 +69,7 @@ def main(path):
data
,
serial
=
fs
.
load
(
oid
,
""
)
except
:
print
"oid %s failed to load"
%
hex
(
u64
(
oid
))
if
VERBOSE
:
traceback
.
print_exc
()
noload
[
oid
]
=
1
...
...
@@ -93,4 +96,12 @@ def main(path):
if
__name__
==
"__main__"
:
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