Show More
@@ -3037,6 +3037,8 def debugrevlog(ui, repo, file_=None, ** | |||
|
3037 | 3037 | totalsize = fulltotal + deltatotal |
|
3038 | 3038 | avgchainlen = sum(chainlengths) / numrevs |
|
3039 | 3039 | maxchainlen = max(chainlengths) |
|
3040 | compratio = 1 | |
|
3041 | if totalsize: | |
|
3040 | 3042 | compratio = totalrawsize / totalsize |
|
3041 | 3043 | |
|
3042 | 3044 | basedfmtstr = '%%%dd\n' |
@@ -3048,7 +3050,10 def debugrevlog(ui, repo, file_=None, ** | |||
|
3048 | 3050 | return basepcfmtstr % (len(str(max)), ' ' * padding) |
|
3049 | 3051 | |
|
3050 | 3052 | def pcfmt(value, total): |
|
3053 | if total: | |
|
3051 | 3054 | return (value, 100 * float(value) / total) |
|
3055 | else: | |
|
3056 | return value, 100.0 | |
|
3052 | 3057 | |
|
3053 | 3058 | ui.write(('format : %d\n') % format) |
|
3054 | 3059 | ui.write(('flags : %s\n') % ', '.join(flags)) |
General Comments 0
You need to be logged in to leave comments.
Login now