Show More
@@ -288,6 +288,8 b' def debug_revlog(ui, revlog):' | |||
|
288 | 288 | if not flags: |
|
289 | 289 | flags = [b'(none)'] |
|
290 | 290 | |
|
291 | ### the total size of stored content if incompressed. | |
|
292 | full_text_total_size = 0 | |
|
291 | 293 | ### tracks merge vs single parent |
|
292 | 294 | nummerges = 0 |
|
293 | 295 | |
@@ -347,7 +349,9 b' def debug_revlog(ui, revlog):' | |||
|
347 | 349 | p1, p2 = r.parentrevs(rev) |
|
348 | 350 | delta = r.deltaparent(rev) |
|
349 | 351 | if format > 0: |
|
350 |
|
|
|
352 | s = r.rawsize(rev) | |
|
353 | full_text_total_size += s | |
|
354 | addsize(s, datasize) | |
|
351 | 355 | if p2 != nodemod.nullrev: |
|
352 | 356 | nummerges += 1 |
|
353 | 357 | size = r.length(rev) |
@@ -536,6 +540,18 b' def debug_revlog(ui, revlog):' | |||
|
536 | 540 | ui.write(fmt % pcfmt(chunktypesizes[chunktype], totalsize)) |
|
537 | 541 | |
|
538 | 542 | ui.write(b'\n') |
|
543 | b_total = b"%d" % full_text_total_size | |
|
544 | p_total = [] | |
|
545 | while len(b_total) > 3: | |
|
546 | p_total.append(b_total[-3:]) | |
|
547 | b_total = b_total[:-3] | |
|
548 | p_total.append(b_total) | |
|
549 | p_total.reverse() | |
|
550 | b_total = b' '.join(p_total) | |
|
551 | ||
|
552 | ui.write(b'\n') | |
|
553 | ui.writenoi18n(b'total-stored-content: %s bytes\n' % b_total) | |
|
554 | ui.write(b'\n') | |
|
539 | 555 | fmt = dfmtstr(max(avgchainlen, maxchainlen, maxchainspan, compratio)) |
|
540 | 556 | ui.writenoi18n(b'avg chain length : ' + fmt % avgchainlen) |
|
541 | 557 | ui.writenoi18n(b'max chain length : ' + fmt % maxchainlen) |
@@ -39,6 +39,9 b'' | |||
|
39 | 39 | chunks size : 191 |
|
40 | 40 | 0x75 (u) : 191 (100.00%) |
|
41 | 41 | |
|
42 | ||
|
43 | total-stored-content: 188 bytes | |
|
44 | ||
|
42 | 45 | avg chain length : 0 |
|
43 | 46 | max chain length : 0 |
|
44 | 47 | max chain reach : 67 |
@@ -74,6 +77,9 b'' | |||
|
74 | 77 | empty : 0 ( 0.00%) |
|
75 | 78 | 0x75 (u) : 88 (100.00%) |
|
76 | 79 | |
|
80 | ||
|
81 | total-stored-content: 86 bytes | |
|
82 | ||
|
77 | 83 | avg chain length : 0 |
|
78 | 84 | max chain length : 0 |
|
79 | 85 | max chain reach : 44 |
@@ -107,6 +113,9 b'' | |||
|
107 | 113 | chunks size : 3 |
|
108 | 114 | 0x75 (u) : 3 (100.00%) |
|
109 | 115 | |
|
116 | ||
|
117 | total-stored-content: 2 bytes | |
|
118 | ||
|
110 | 119 | avg chain length : 0 |
|
111 | 120 | max chain length : 0 |
|
112 | 121 | max chain reach : 3 |
General Comments 0
You need to be logged in to leave comments.
Login now