##// END OF EJS Templates
commands.debugrevlog: report max chain length...
Gregory Szorc -
r24503:944749de default
parent child Browse files
Show More
@@ -2843,6 +2843,7 b' def debugrevlog(ui, repo, file_=None, **'
2843 2843 deltasize[2] /= numrevs - numfull
2844 2844 totalsize = fulltotal + deltatotal
2845 2845 avgchainlen = sum(chainlengths) / numrevs
2846 maxchainlen = max(chainlengths)
2846 2847 compratio = totalrawsize / totalsize
2847 2848
2848 2849 basedfmtstr = '%%%dd\n'
@@ -2875,6 +2876,7 b' def debugrevlog(ui, repo, file_=None, **'
2875 2876 ui.write('\n')
2876 2877 fmt = dfmtstr(max(avgchainlen, compratio))
2877 2878 ui.write(('avg chain length : ') + fmt % avgchainlen)
2879 ui.write(('max chain length : ') + fmt % maxchainlen)
2878 2880 ui.write(('compression ratio : ') + fmt % compratio)
2879 2881
2880 2882 if format > 0:
@@ -18,6 +18,7 b''
18 18 deltas : 0 ( 0.00%)
19 19
20 20 avg chain length : 0
21 max chain length : 0
21 22 compression ratio : 0
22 23
23 24 uncompressed data size (min/max/avg) : 43 / 43 / 43
General Comments 0
You need to be logged in to leave comments. Login now