Mercurial > public > mercurial-scm > hg-stable
diff tests/test-upgrade-repo.t @ 37283: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 | 0147a4730420 |
children | cbc4425e81b5 |
line wrap: on
line diff
--- a/tests/test-upgrade-repo.t Mon Apr 02 15:55:50 2018 -0700 +++ b/tests/test-upgrade-repo.t Mon Apr 02 16:24:57 2018 -0700 @@ -645,11 +645,11 @@ > EOF $ hg config format format.maxchainlen=9001 - $ hg debugindex file - rev offset length delta linkrev nodeid p1 p2 - 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000 - 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000 - 2 98 84 -1 2 8daf79c5522b af3e29f7a72e 000000000000 + $ hg debugdeltachain file + rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio + 0 1 1 -1 base 77 182 77 0.42308 77 0 0.00000 + 1 1 2 0 p1 21 191 98 0.51309 98 0 0.00000 + 2 2 1 -1 base 84 200 84 0.42000 84 0 0.00000 $ hg debugupgraderepo --run --optimize redeltaall upgrade will perform the following actions: @@ -684,11 +684,11 @@ removing temporary repository $TESTTMP/localconfig/.hg/upgrade.* (glob) copy of old repository backed up at $TESTTMP/localconfig/.hg/upgradebackup.* (glob) the old repository will not be deleted; remove it to free up disk space once the upgraded repository is verified - $ hg debugindex file - rev offset length delta linkrev nodeid p1 p2 - 0 0 77 -1 0 bcc1d3df78b2 000000000000 000000000000 - 1 77 21 0 1 af3e29f7a72e bcc1d3df78b2 000000000000 - 2 98 21 1 2 8daf79c5522b af3e29f7a72e 000000000000 + $ hg debugdeltachain file + rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio + 0 1 1 -1 base 77 182 77 0.42308 77 0 0.00000 + 1 1 2 0 p1 21 191 98 0.51309 98 0 0.00000 + 2 1 3 1 p1 21 200 119 0.59500 119 0 0.00000 $ cd .. $ cat << EOF >> $HGRCPATH