##// END OF EJS Templates
debugrevlog: fix for non-manifest object...
Boris Feld -
r39184:14641833 default
parent child Browse files
Show More
@@ -2170,7 +2170,10 b' def debugrevlog(ui, repo, file_=None, **'
2170 2170 numother += 1
2171 2171
2172 2172 # Obtain data on the raw chunks in the revlog.
2173 if util.safehasattr(r, '_getsegmentforrevs'):
2173 2174 segment = r._getsegmentforrevs(rev, rev)[1]
2175 else:
2176 segment = r._revlog._getsegmentforrevs(rev, rev)[1]
2174 2177 if segment:
2175 2178 chunktype = bytes(segment[0:1])
2176 2179 else:
@@ -15,6 +15,36 b''
15 15 adding a
16 16 $ hg ci -Am make-it-full
17 17 #if reporevlogstore
18 $ hg debugrevlog -c
19 format : 1
20 flags : inline
21
22 revisions : 3
23 merges : 0 ( 0.00%)
24 normal : 3 (100.00%)
25 revisions : 3
26 empty : 0 ( 0.00%)
27 text : 0 (100.00%)
28 delta : 0 (100.00%)
29 full : 3 (100.00%)
30 deltas : 0 ( 0.00%)
31 revision size : 191
32 full : 191 (100.00%)
33 deltas : 0 ( 0.00%)
34
35 chunks : 3
36 0x75 (u) : 3 (100.00%)
37 chunks size : 191
38 0x75 (u) : 191 (100.00%)
39
40 avg chain length : 0
41 max chain length : 0
42 max chain reach : 67
43 compression ratio : 0
44
45 uncompressed data size (min/max/avg) : 57 / 66 / 62
46 full revision size (min/max/avg) : 58 / 67 / 63
47 delta size (min/max/avg) : 0 / 0 / 0
18 48 $ hg debugrevlog -m
19 49 format : 1
20 50 flags : inline, generaldelta
@@ -47,6 +77,36 b''
47 77 uncompressed data size (min/max/avg) : 0 / 43 / 28
48 78 full revision size (min/max/avg) : 44 / 44 / 44
49 79 delta size (min/max/avg) : 0 / 0 / 0
80 $ hg debugrevlog a
81 format : 1
82 flags : inline, generaldelta
83
84 revisions : 1
85 merges : 0 ( 0.00%)
86 normal : 1 (100.00%)
87 revisions : 1
88 empty : 0 ( 0.00%)
89 text : 0 (100.00%)
90 delta : 0 (100.00%)
91 full : 1 (100.00%)
92 deltas : 0 ( 0.00%)
93 revision size : 3
94 full : 3 (100.00%)
95 deltas : 0 ( 0.00%)
96
97 chunks : 1
98 0x75 (u) : 1 (100.00%)
99 chunks size : 3
100 0x75 (u) : 3 (100.00%)
101
102 avg chain length : 0
103 max chain length : 0
104 max chain reach : 3
105 compression ratio : 0
106
107 uncompressed data size (min/max/avg) : 2 / 2 / 2
108 full revision size (min/max/avg) : 3 / 3 / 3
109 delta size (min/max/avg) : 0 / 0 / 0
50 110 #endif
51 111
52 112 Test debugindex, with and without the --verbose/--debug flag
General Comments 0
You need to be logged in to leave comments. Login now