Show More
@@ -2091,6 +2091,8 b' def debugrevlog(ui, repo, file_=None, **' | |||
|
2091 | 2091 | ### tracks ways the "delta" are build |
|
2092 | 2092 | # nodelta |
|
2093 | 2093 | numempty = 0 |
|
2094 | numemptytext = 0 | |
|
2095 | numemptydelta = 0 | |
|
2094 | 2096 | # full file content |
|
2095 | 2097 | numfull = 0 |
|
2096 | 2098 | # delta against previous revision |
@@ -2139,6 +2141,7 b' def debugrevlog(ui, repo, file_=None, **' | |||
|
2139 | 2141 | chainspans.append(size) |
|
2140 | 2142 | if size == 0: |
|
2141 | 2143 | numempty += 1 |
|
2144 | numemptytext += 1 | |
|
2142 | 2145 | else: |
|
2143 | 2146 | numfull += 1 |
|
2144 | 2147 | addsize(size, fullsize) |
@@ -2150,6 +2153,7 b' def debugrevlog(ui, repo, file_=None, **' | |||
|
2150 | 2153 | chainspans.append((revaddr - baseaddr) + size) |
|
2151 | 2154 | if size == 0: |
|
2152 | 2155 | numempty += 1 |
|
2156 | numemptydelta += 1 | |
|
2153 | 2157 | else: |
|
2154 | 2158 | addsize(size, deltasize) |
|
2155 | 2159 | if delta == rev - 1: |
@@ -2226,6 +2230,10 b' def debugrevlog(ui, repo, file_=None, **' | |||
|
2226 | 2230 | ui.write((' normal : ') + fmt % pcfmt(numrevs - nummerges, numrevs)) |
|
2227 | 2231 | ui.write(('revisions : ') + fmt2 % numrevs) |
|
2228 | 2232 | ui.write((' empty : ') + fmt % pcfmt(numempty, numrevs)) |
|
2233 | ui.write((' text : ') | |
|
2234 | + fmt % pcfmt(numemptytext, numemptytext + numemptydelta)) | |
|
2235 | ui.write((' delta : ') | |
|
2236 | + fmt % pcfmt(numemptydelta, numemptytext + numemptydelta)) | |
|
2229 | 2237 | ui.write((' full : ') + fmt % pcfmt(numfull, numrevs)) |
|
2230 | 2238 | ui.write((' deltas : ') + fmt % pcfmt(numdeltas, numrevs)) |
|
2231 | 2239 | ui.write(('revision size : ') + fmt2 % totalsize) |
General Comments 0
You need to be logged in to leave comments.
Login now