Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
37282:009d0283de5f | 37283:d4e62df1c73d |
---|---|
71 $ hg ci -m "merge" | 71 $ hg ci -m "merge" |
72 | 72 |
73 main: we should have a merge here: | 73 main: we should have a merge here: |
74 | 74 |
75 $ hg debugindex --changelog | 75 $ hg debugindex --changelog |
76 rev offset length linkrev nodeid p1 p2 | 76 rev linkrev nodeid p1 p2 |
77 0 0 73 0 cdca01651b96 000000000000 000000000000 | 77 0 0 cdca01651b96 000000000000 000000000000 |
78 1 73 68 1 f6718a9cb7f3 cdca01651b96 000000000000 | 78 1 1 f6718a9cb7f3 cdca01651b96 000000000000 |
79 2 141 68 2 bdd988058d16 cdca01651b96 000000000000 | 79 2 2 bdd988058d16 cdca01651b96 000000000000 |
80 3 209 66 3 d8a521142a3c f6718a9cb7f3 bdd988058d16 | 80 3 3 d8a521142a3c f6718a9cb7f3 bdd988058d16 |
81 | 81 |
82 log should show foo and quux changed: | 82 log should show foo and quux changed: |
83 | 83 |
84 $ hg log -v -r tip | 84 $ hg log -v -r tip |
85 changeset: 3:d8a521142a3c | 85 changeset: 3:d8a521142a3c |
95 | 95 |
96 | 96 |
97 foo: we should have a merge here: | 97 foo: we should have a merge here: |
98 | 98 |
99 $ hg debugindex foo | 99 $ hg debugindex foo |
100 rev offset length linkrev nodeid p1 p2 | 100 rev linkrev nodeid p1 p2 |
101 0 0 3 0 b8e02f643373 000000000000 000000000000 | 101 0 0 b8e02f643373 000000000000 000000000000 |
102 1 3 4 1 2ffeddde1b65 b8e02f643373 000000000000 | 102 1 1 2ffeddde1b65 b8e02f643373 000000000000 |
103 2 7 4 2 33d1fb69067a b8e02f643373 000000000000 | 103 2 2 33d1fb69067a b8e02f643373 000000000000 |
104 3 11 4 3 aa27919ee430 2ffeddde1b65 33d1fb69067a | 104 3 3 aa27919ee430 2ffeddde1b65 33d1fb69067a |
105 | 105 |
106 bar: we should not have a merge here: | 106 bar: we should not have a merge here: |
107 | 107 |
108 $ hg debugindex bar | 108 $ hg debugindex bar |
109 rev offset length linkrev nodeid p1 p2 | 109 rev linkrev nodeid p1 p2 |
110 0 0 3 0 b8e02f643373 000000000000 000000000000 | 110 0 0 b8e02f643373 000000000000 000000000000 |
111 1 3 4 2 33d1fb69067a b8e02f643373 000000000000 | 111 1 2 33d1fb69067a b8e02f643373 000000000000 |
112 | 112 |
113 baz: we should not have a merge here: | 113 baz: we should not have a merge here: |
114 | 114 |
115 $ hg debugindex baz | 115 $ hg debugindex baz |
116 rev offset length linkrev nodeid p1 p2 | 116 rev linkrev nodeid p1 p2 |
117 0 0 3 0 b8e02f643373 000000000000 000000000000 | 117 0 0 b8e02f643373 000000000000 000000000000 |
118 1 3 4 1 2ffeddde1b65 b8e02f643373 000000000000 | 118 1 1 2ffeddde1b65 b8e02f643373 000000000000 |
119 | 119 |
120 quux: we should not have a merge here: | 120 quux: we should not have a merge here: |
121 | 121 |
122 $ hg debugindex quux | 122 $ hg debugindex quux |
123 rev offset length linkrev nodeid p1 p2 | 123 rev linkrev nodeid p1 p2 |
124 0 0 3 0 b8e02f643373 000000000000 000000000000 | 124 0 0 b8e02f643373 000000000000 000000000000 |
125 1 3 5 3 6128c0f33108 b8e02f643373 000000000000 | 125 1 3 6128c0f33108 b8e02f643373 000000000000 |
126 | 126 |
127 Manifest entries should match tips of all files: | 127 Manifest entries should match tips of all files: |
128 | 128 |
129 $ hg manifest --debug | 129 $ hg manifest --debug |
130 33d1fb69067a0139622a3fa3b7ba1cdb1367972e 644 bar | 130 33d1fb69067a0139622a3fa3b7ba1cdb1367972e 644 bar |