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