11 sys
.stderr
.write("Usage: %s DBFILE [...]\n\n" % os
.path
.basename(cmd
))
12 sys
.stderr
.write("Dump .db database files created by cvs2svn.\n")
20 for db_file
in sys
.argv
[1:]:
21 print '*** ' + db_file
+ ' ***'
23 db
= anydbm
.open(db_file
, 'r')
29 if this_len
> longest_len
:
30 longest_len
= this_len
33 # We usually don't store raw values that happen to look like
34 # marshalled data, so this is reliable enough.
36 value
= str(marshal
.loads(db
[key
]))
39 print ' ' * (longest_len
- this_len
) + key
+ ' : ' + value
42 if __name__
== "__main__":