Mercurial > hg
diff tests/test-filebranch.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 | f1186c292d03 |
line wrap: on
line diff
--- a/tests/test-filebranch.t Mon Apr 02 16:28:20 2018 -0700 +++ b/tests/test-filebranch.t Mon Apr 02 16:47:53 2018 -0700 @@ -73,11 +73,11 @@ main: we should have a merge here: $ hg debugindex --changelog - rev offset length linkrev nodeid p1 p2 - 0 0 73 0 cdca01651b96 000000000000 000000000000 - 1 73 68 1 f6718a9cb7f3 cdca01651b96 000000000000 - 2 141 68 2 bdd988058d16 cdca01651b96 000000000000 - 3 209 66 3 d8a521142a3c f6718a9cb7f3 bdd988058d16 + rev linkrev nodeid p1 p2 + 0 0 cdca01651b96 000000000000 000000000000 + 1 1 f6718a9cb7f3 cdca01651b96 000000000000 + 2 2 bdd988058d16 cdca01651b96 000000000000 + 3 3 d8a521142a3c f6718a9cb7f3 bdd988058d16 log should show foo and quux changed: @@ -97,32 +97,32 @@ foo: we should have a merge here: $ hg debugindex foo - rev offset length linkrev nodeid p1 p2 - 0 0 3 0 b8e02f643373 000000000000 000000000000 - 1 3 4 1 2ffeddde1b65 b8e02f643373 000000000000 - 2 7 4 2 33d1fb69067a b8e02f643373 000000000000 - 3 11 4 3 aa27919ee430 2ffeddde1b65 33d1fb69067a + rev linkrev nodeid p1 p2 + 0 0 b8e02f643373 000000000000 000000000000 + 1 1 2ffeddde1b65 b8e02f643373 000000000000 + 2 2 33d1fb69067a b8e02f643373 000000000000 + 3 3 aa27919ee430 2ffeddde1b65 33d1fb69067a bar: we should not have a merge here: $ hg debugindex bar - rev offset length linkrev nodeid p1 p2 - 0 0 3 0 b8e02f643373 000000000000 000000000000 - 1 3 4 2 33d1fb69067a b8e02f643373 000000000000 + rev linkrev nodeid p1 p2 + 0 0 b8e02f643373 000000000000 000000000000 + 1 2 33d1fb69067a b8e02f643373 000000000000 baz: we should not have a merge here: $ hg debugindex baz - rev offset length linkrev nodeid p1 p2 - 0 0 3 0 b8e02f643373 000000000000 000000000000 - 1 3 4 1 2ffeddde1b65 b8e02f643373 000000000000 + rev linkrev nodeid p1 p2 + 0 0 b8e02f643373 000000000000 000000000000 + 1 1 2ffeddde1b65 b8e02f643373 000000000000 quux: we should not have a merge here: $ hg debugindex quux - rev offset length linkrev nodeid p1 p2 - 0 0 3 0 b8e02f643373 000000000000 000000000000 - 1 3 5 3 6128c0f33108 b8e02f643373 000000000000 + rev linkrev nodeid p1 p2 + 0 0 b8e02f643373 000000000000 000000000000 + 1 3 6128c0f33108 b8e02f643373 000000000000 Manifest entries should match tips of all files: