comparison tests/test-parseindex.t @ 37282:009d0283de5f

debugcommands: drop base revision from debugindex Revlog index data consists of generic index metadata that will likely be implemented across all storage engines and revlog-specifc metadata. Most tests printing index data only care about the generic fields. This commit drops the printing of the base revision from `hg debugindex`. This value is an implementation detail of revlogs / delta chains. If tests are interested in verifying this implementation detail, `hg debugdeltachain` is a better command. Most tests were skipping over this field anyway. Tests that weren't looked like they were newer. So my guess is we forgot to make them skip the field to match the style of the older tests. This reinforces my belief that the base revision is not worth having in `hg debugindex`. Differential Revision: https://phab.mercurial-scm.org/D3027
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 02 Apr 2018 16:28:20 -0700
parents 806b07d7c7d6
children d4e62df1c73d
comparison
equal deleted inserted replaced
37281:806b07d7c7d6 37282:009d0283de5f
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 base link p1 p2 nodeid 147 rev flag offset length size link p1 p2 nodeid
148 0 0000 0 63 62 0 0 2 -1 7c31755bf9b5 148 0 0000 0 63 62 0 2 -1 7c31755bf9b5
149 1 0000 63 66 65 1 1 0 2 26333235a41c 149 1 0000 63 66 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 base link p1 p2 nodeid 157 rev flag offset length size link p1 p2 nodeid
158 0 0000 0 63 62 0 0 65536 -1 7c31755bf9b5 158 0 0000 0 63 62 0 65536 -1 7c31755bf9b5
159 1 0000 63 66 65 1 1 0 65536 26333235a41c 159 1 0000 63 66 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