##// END OF EJS Templates
debugcommands: drop base revision from debugindex...
debugcommands: drop base revision from debugindex Revlog index data consists of generic index metadata that will likely be implemented across all storage engines and revlog-specifc metadata. Most tests printing index data only care about the generic fields. This commit drops the printing of the base revision from `hg debugindex`. This value is an implementation detail of revlogs / delta chains. If tests are interested in verifying this implementation detail, `hg debugdeltachain` is a better command. Most tests were skipping over this field anyway. Tests that weren't looked like they were newer. So my guess is we forgot to make them skip the field to match the style of the older tests. This reinforces my belief that the base revision is not worth having in `hg debugindex`. Differential Revision: https://phab.mercurial-scm.org/D3027

File last commit:

r37300:009d0283 default
r37300:009d0283 default
Show More
test-revlog-packentry.t
23 lines | 555 B | text/troff | Tads3Lexer
/ tests / test-revlog-packentry.t
$ hg init repo
$ cd repo
$ touch foo
$ hg ci -Am 'add foo'
adding foo
$ hg up -C null
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
this should be stored as a delta against rev 0
$ echo foo bar baz > foo
$ hg ci -Am 'add foo again'
adding foo
created new head
$ hg debugindex foo
rev offset length linkrev nodeid p1 p2
0 0 0 0 b80de5d13875 000000000000 000000000000
1 0 13 1 0376abec49b8 000000000000 000000000000
$ cd ..