comparison tests/test-parseindex.t @ 37283:d4e62df1c73d

debugcommands: drop offset and length from debugindex by default These fields are an implementation detail of revlog storage. As such, they are not part of the generic storage "index" interface and shouldn't be displayed by default. Because we don't have another way to display these fields, we've retained support for printing these fields via --verbose. Yes, I know we should probably be doing all this formatting using modern formatting/templater APIs. I didn't feel like scope bloating this patch. Differential Revision: https://phab.mercurial-scm.org/D3028
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 02 Apr 2018 16:47:53 -0700
parents 009d0283de5f
children 538e850ae737
comparison
equal deleted inserted replaced
37282:009d0283de5f 37283:d4e62df1c73d
142 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:] 142 > d = data[:24] + p + data[28:127 + 28] + p + data[127 + 32:]
143 > open(n + "/.hg/store/00changelog.i", "wb").write(d) 143 > open(n + "/.hg/store/00changelog.i", "wb").write(d)
144 > EOF 144 > EOF
145 145
146 $ hg -R limit debugindex -f1 -c 146 $ hg -R limit debugindex -f1 -c
147 rev flag offset length size link p1 p2 nodeid 147 rev flag size link p1 p2 nodeid
148 0 0000 0 63 62 0 2 -1 7c31755bf9b5 148 0 0000 62 0 2 -1 7c31755bf9b5
149 1 0000 63 66 65 1 0 2 26333235a41c 149 1 0000 65 1 0 2 26333235a41c
150 150
151 $ hg -R limit debugdeltachain -c 151 $ hg -R limit debugdeltachain -c
152 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio 152 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
153 0 1 1 -1 base 63 62 63 1.01613 63 0 0.00000 153 0 1 1 -1 base 63 62 63 1.01613 63 0 0.00000
154 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 154 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000
155 155
156 $ hg -R segv debugindex -f1 -c 156 $ hg -R segv debugindex -f1 -c
157 rev flag offset length size link p1 p2 nodeid 157 rev flag size link p1 p2 nodeid
158 0 0000 0 63 62 0 65536 -1 7c31755bf9b5 158 0 0000 62 0 65536 -1 7c31755bf9b5
159 1 0000 63 66 65 1 0 65536 26333235a41c 159 1 0000 65 1 0 65536 26333235a41c
160 160
161 $ hg -R segv debugdeltachain -c 161 $ hg -R segv debugdeltachain -c
162 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio 162 rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio
163 0 1 1 -1 base 63 62 63 1.01613 63 0 0.00000 163 0 1 1 -1 base 63 62 63 1.01613 63 0 0.00000
164 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 164 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000