Show More
@@ -0,0 +1,25 b'' | |||
|
1 | $ hg init debugrevlog | |
|
2 | $ cd debugrevlog | |
|
3 | $ echo a > a | |
|
4 | $ hg ci -Am adda | |
|
5 | adding a | |
|
6 | $ hg debugrevlog -m | |
|
7 | format : 1 | |
|
8 | flags : inline | |
|
9 | ||
|
10 | revisions : 1 | |
|
11 | merges : 0 ( 0.00%) | |
|
12 | normal : 1 (100.00%) | |
|
13 | revisions : 1 | |
|
14 | full : 1 (100.00%) | |
|
15 | deltas : 0 ( 0.00%) | |
|
16 | revision size : 44 | |
|
17 | full : 44 (100.00%) | |
|
18 | deltas : 0 ( 0.00%) | |
|
19 | ||
|
20 | avg chain length : 0 | |
|
21 | compression ratio : 0 | |
|
22 | ||
|
23 | uncompressed data size (min/max/avg) : 43 / 43 / 43 | |
|
24 | full revision size (min/max/avg) : 44 / 44 / 44 | |
|
25 | delta size (min/max/avg) : 0 / 0 / 0 |
@@ -2245,6 +2245,11 b' def debugrevlog(ui, repo, file_ = None, ' | |||
|
2245 | 2245 | elif delta != nullrev: |
|
2246 | 2246 | numother += 1 |
|
2247 | 2247 | |
|
2248 | # Adjust size min value for empty cases | |
|
2249 | for size in (datasize, fullsize, deltasize): | |
|
2250 | if size[0] is None: | |
|
2251 | size[0] = 0 | |
|
2252 | ||
|
2248 | 2253 | numdeltas = numrevs - numfull |
|
2249 | 2254 | numoprev = numprev - nump1prev - nump2prev |
|
2250 | 2255 | totalrawsize = datasize[2] |
@@ -2252,6 +2257,7 b' def debugrevlog(ui, repo, file_ = None, ' | |||
|
2252 | 2257 | fulltotal = fullsize[2] |
|
2253 | 2258 | fullsize[2] /= numfull |
|
2254 | 2259 | deltatotal = deltasize[2] |
|
2260 | if numrevs - numfull > 0: | |
|
2255 | 2261 | deltasize[2] /= numrevs - numfull |
|
2256 | 2262 | totalsize = fulltotal + deltatotal |
|
2257 | 2263 | avgchainlen = sum(chainlengths) / numrevs |
General Comments 0
You need to be logged in to leave comments.
Login now