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