Mercurial > hg
comparison tests/test-parseindex.t @ 37281:806b07d7c7d6
tests: use debugdeltachain where appropriate
Some tests are verifying delta chain type things. This metadata
has more to do with a revlog implementation details than index
data, which is theoretically generic.
This commit ports some tests to `hg debugdeltachain`, as it is the
more appropriate debug command for looking at delta metadata.
Differential Revision: https://phab.mercurial-scm.org/D3026
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 02 Apr 2018 16:24:57 -0700 |
parents | 435481393198 |
children | 009d0283de5f |
comparison
equal
deleted
inserted
replaced
37280:435481393198 | 37281:806b07d7c7d6 |
---|---|
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 base link p1 p2 nodeid |
148 0 0000 0 63 62 0 0 2 -1 7c31755bf9b5 | 148 0 0000 0 63 62 0 0 2 -1 7c31755bf9b5 |
149 1 0000 63 66 65 1 1 0 2 26333235a41c | 149 1 0000 63 66 65 1 1 0 2 26333235a41c |
150 | |
151 $ hg -R limit debugdeltachain -c | |
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 | |
154 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 | |
155 | |
150 $ hg -R segv debugindex -f1 -c | 156 $ hg -R segv debugindex -f1 -c |
151 rev flag offset length size base link p1 p2 nodeid | 157 rev flag offset length size base link p1 p2 nodeid |
152 0 0000 0 63 62 0 0 65536 -1 7c31755bf9b5 | 158 0 0000 0 63 62 0 0 65536 -1 7c31755bf9b5 |
153 1 0000 63 66 65 1 1 0 65536 26333235a41c | 159 1 0000 63 66 65 1 1 0 65536 26333235a41c |
160 | |
161 $ hg -R segv debugdeltachain -c | |
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 | |
164 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 | |
154 | 165 |
155 $ cat <<EOF > test.py | 166 $ cat <<EOF > test.py |
156 > import sys | 167 > import sys |
157 > from mercurial import changelog, vfs | 168 > from mercurial import changelog, vfs |
158 > cl = changelog.changelog(vfs.vfs(sys.argv[1])) | 169 > cl = changelog.changelog(vfs.vfs(sys.argv[1])) |