Show More
@@ -288,6 +288,8 b' def debug_revlog(ui, revlog):' | |||||
288 | if not flags: |
|
288 | if not flags: | |
289 | flags = [b'(none)'] |
|
289 | flags = [b'(none)'] | |
290 |
|
290 | |||
|
291 | ### the total size of stored content if incompressed. | |||
|
292 | full_text_total_size = 0 | |||
291 | ### tracks merge vs single parent |
|
293 | ### tracks merge vs single parent | |
292 | nummerges = 0 |
|
294 | nummerges = 0 | |
293 |
|
295 | |||
@@ -347,7 +349,9 b' def debug_revlog(ui, revlog):' | |||||
347 | p1, p2 = r.parentrevs(rev) |
|
349 | p1, p2 = r.parentrevs(rev) | |
348 | delta = r.deltaparent(rev) |
|
350 | delta = r.deltaparent(rev) | |
349 | if format > 0: |
|
351 | if format > 0: | |
350 |
|
|
352 | s = r.rawsize(rev) | |
|
353 | full_text_total_size += s | |||
|
354 | addsize(s, datasize) | |||
351 | if p2 != nodemod.nullrev: |
|
355 | if p2 != nodemod.nullrev: | |
352 | nummerges += 1 |
|
356 | nummerges += 1 | |
353 | size = r.length(rev) |
|
357 | size = r.length(rev) | |
@@ -536,6 +540,18 b' def debug_revlog(ui, revlog):' | |||||
536 | ui.write(fmt % pcfmt(chunktypesizes[chunktype], totalsize)) |
|
540 | ui.write(fmt % pcfmt(chunktypesizes[chunktype], totalsize)) | |
537 |
|
541 | |||
538 | ui.write(b'\n') |
|
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 | fmt = dfmtstr(max(avgchainlen, maxchainlen, maxchainspan, compratio)) |
|
555 | fmt = dfmtstr(max(avgchainlen, maxchainlen, maxchainspan, compratio)) | |
540 | ui.writenoi18n(b'avg chain length : ' + fmt % avgchainlen) |
|
556 | ui.writenoi18n(b'avg chain length : ' + fmt % avgchainlen) | |
541 | ui.writenoi18n(b'max chain length : ' + fmt % maxchainlen) |
|
557 | ui.writenoi18n(b'max chain length : ' + fmt % maxchainlen) |
@@ -39,6 +39,9 b'' | |||||
39 | chunks size : 191 |
|
39 | chunks size : 191 | |
40 | 0x75 (u) : 191 (100.00%) |
|
40 | 0x75 (u) : 191 (100.00%) | |
41 |
|
41 | |||
|
42 | ||||
|
43 | total-stored-content: 188 bytes | |||
|
44 | ||||
42 | avg chain length : 0 |
|
45 | avg chain length : 0 | |
43 | max chain length : 0 |
|
46 | max chain length : 0 | |
44 | max chain reach : 67 |
|
47 | max chain reach : 67 | |
@@ -74,6 +77,9 b'' | |||||
74 | empty : 0 ( 0.00%) |
|
77 | empty : 0 ( 0.00%) | |
75 | 0x75 (u) : 88 (100.00%) |
|
78 | 0x75 (u) : 88 (100.00%) | |
76 |
|
79 | |||
|
80 | ||||
|
81 | total-stored-content: 86 bytes | |||
|
82 | ||||
77 | avg chain length : 0 |
|
83 | avg chain length : 0 | |
78 | max chain length : 0 |
|
84 | max chain length : 0 | |
79 | max chain reach : 44 |
|
85 | max chain reach : 44 | |
@@ -107,6 +113,9 b'' | |||||
107 | chunks size : 3 |
|
113 | chunks size : 3 | |
108 | 0x75 (u) : 3 (100.00%) |
|
114 | 0x75 (u) : 3 (100.00%) | |
109 |
|
115 | |||
|
116 | ||||
|
117 | total-stored-content: 2 bytes | |||
|
118 | ||||
110 | avg chain length : 0 |
|
119 | avg chain length : 0 | |
111 | max chain length : 0 |
|
120 | max chain length : 0 | |
112 | max chain reach : 3 |
|
121 | max chain reach : 3 |
@@ -126,6 +126,9 b' repeatedly while some of it changes rare' | |||||
126 | chunks size : 58616973 |
|
126 | chunks size : 58616973 | |
127 | 0x28 : 58616973 (100.00%) |
|
127 | 0x28 : 58616973 (100.00%) | |
128 |
|
128 | |||
|
129 | ||||
|
130 | total-stored-content: 1 732 705 361 bytes | |||
|
131 | ||||
129 | avg chain length : 9 |
|
132 | avg chain length : 9 | |
130 | max chain length : 15 |
|
133 | max chain length : 15 | |
131 | max chain reach : 27366701 |
|
134 | max chain reach : 27366701 |
General Comments 0
You need to be logged in to leave comments.
Login now