Mercurial > hg
diff tests/test-copy.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 | db06c4bb2158 |
line wrap: on
line diff
--- a/tests/test-copy.t Mon Apr 02 16:28:20 2018 -0700 +++ b/tests/test-copy.t Mon Apr 02 16:47:53 2018 -0700 @@ -68,8 +68,8 @@ this should show a revision linked to changeset 0 $ hg debugindex a - rev offset length linkrev nodeid p1 p2 - 0 0 3 0 b789fdd96dc2 000000000000 000000000000 + rev linkrev nodeid p1 p2 + 0 0 b789fdd96dc2 000000000000 000000000000 we should see one log entry for b @@ -84,8 +84,8 @@ this should show a revision linked to changeset 1 $ hg debugindex b - rev offset length linkrev nodeid p1 p2 - 0 0 65 1 37d9b5d994ea 000000000000 000000000000 + rev linkrev nodeid p1 p2 + 0 1 37d9b5d994ea 000000000000 000000000000 this should show the rename information in the metadata @@ -170,8 +170,8 @@ should match $ hg debugindex foo - rev offset length linkrev nodeid p1 p2 - 0 0 5 0 2ed2a3912a0b 000000000000 000000000000 + rev linkrev nodeid p1 p2 + 0 0 2ed2a3912a0b 000000000000 000000000000 $ hg debugrename bar bar renamed from foo:2ed2a3912a0b24502043eae84ee4b279c18b90dd @@ -200,15 +200,15 @@ should show no parents for tip $ hg debugindex bar - rev offset length linkrev nodeid p1 p2 - 0 0 69 1 7711d36246cc 000000000000 000000000000 - 1 69 6 2 bdf70a2b8d03 7711d36246cc 000000000000 - 2 75 71 3 b2558327ea8d 000000000000 000000000000 + rev linkrev nodeid p1 p2 + 0 1 7711d36246cc 000000000000 000000000000 + 1 2 bdf70a2b8d03 7711d36246cc 000000000000 + 2 3 b2558327ea8d 000000000000 000000000000 should match $ hg debugindex foo - rev offset length linkrev nodeid p1 p2 - 0 0 5 0 2ed2a3912a0b 000000000000 000000000000 - 1 5 7 2 dd12c926cf16 2ed2a3912a0b 000000000000 + rev linkrev nodeid p1 p2 + 0 0 2ed2a3912a0b 000000000000 000000000000 + 1 2 dd12c926cf16 2ed2a3912a0b 000000000000 $ hg debugrename bar bar renamed from foo:dd12c926cf165e3eb4cf87b084955cb617221c17