Show More
@@ -2,7 +2,7 b'' | |||
|
2 | 2 | # Dump revlogs as raw data stream |
|
3 | 3 | # $ find .hg/store/ -name "*.i" | xargs dumprevlog > repo.dump |
|
4 | 4 | |
|
5 | from __future__ import absolute_import | |
|
5 | from __future__ import absolute_import, print_function | |
|
6 | 6 | |
|
7 | 7 | import sys |
|
8 | 8 | from mercurial import ( |
@@ -17,15 +17,15 b' for fp in (sys.stdin, sys.stdout, sys.st' | |||
|
17 | 17 | for f in sys.argv[1:]: |
|
18 | 18 | binopen = lambda fn: open(fn, 'rb') |
|
19 | 19 | r = revlog.revlog(binopen, f) |
|
20 |
print |
|
|
20 | print("file:", f) | |
|
21 | 21 | for i in r: |
|
22 | 22 | n = r.node(i) |
|
23 | 23 | p = r.parents(n) |
|
24 | 24 | d = r.revision(n) |
|
25 |
print |
|
|
26 |
print |
|
|
27 |
print |
|
|
28 |
print |
|
|
29 |
print |
|
|
30 |
print |
|
|
31 |
print |
|
|
25 | print("node:", node.hex(n)) | |
|
26 | print("linkrev:", r.linkrev(i)) | |
|
27 | print("parents:", node.hex(p[0]), node.hex(p[1])) | |
|
28 | print("length:", len(d)) | |
|
29 | print("-start-") | |
|
30 | print(d) | |
|
31 | print("-end-") |
General Comments 0
You need to be logged in to leave comments.
Login now