Mercurial > hg-stable
diff tests/test-parseindex.t @ 37285: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 |
line wrap: on
line diff
--- a/tests/test-parseindex.t Mon Apr 02 16:28:20 2018 -0700 +++ b/tests/test-parseindex.t Mon Apr 02 16:47:53 2018 -0700 @@ -144,9 +144,9 @@ > EOF $ hg -R limit debugindex -f1 -c - rev flag offset length size link p1 p2 nodeid - 0 0000 0 63 62 0 2 -1 7c31755bf9b5 - 1 0000 63 66 65 1 0 2 26333235a41c + rev flag size link p1 p2 nodeid + 0 0000 62 0 2 -1 7c31755bf9b5 + 1 0000 65 1 0 2 26333235a41c $ hg -R limit debugdeltachain -c rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio @@ -154,9 +154,9 @@ 1 2 1 -1 base 66 65 66 1.01538 66 0 0.00000 $ hg -R segv debugindex -f1 -c - rev flag offset length size link p1 p2 nodeid - 0 0000 0 63 62 0 65536 -1 7c31755bf9b5 - 1 0000 63 66 65 1 0 65536 26333235a41c + rev flag size link p1 p2 nodeid + 0 0000 62 0 65536 -1 7c31755bf9b5 + 1 0000 65 1 0 65536 26333235a41c $ hg -R segv debugdeltachain -c rev chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio