Mercurial > hg
diff tests/test-revlog.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 | 0a10f142299d |
line wrap: on
line diff
--- a/tests/test-revlog.t Mon Apr 02 16:28:20 2018 -0700 +++ b/tests/test-revlog.t Mon Apr 02 16:47:53 2018 -0700 @@ -40,8 +40,8 @@ ... .decode("base64").decode("zlib")) $ hg debugindex a.i - rev offset length linkrev nodeid p1 p2 - 0 0 19 2 99e0332bd498 000000000000 000000000000 - 1 19 12 3 6674f57a23d8 99e0332bd498 000000000000 + rev linkrev nodeid p1 p2 + 0 2 99e0332bd498 000000000000 000000000000 + 1 3 6674f57a23d8 99e0332bd498 000000000000 $ hg debugdata a.i 1 2>&1 | egrep 'Error:.*decoded' (mercurial\.\w+\.mpatch\.)?mpatchError: patch cannot be decoded (re)