I realised the code was not exercised much.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
I realised the code was not exercised much.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | tests/test-persistent-nodemap.t (7 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | marmoute | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | Alphare | ||
Closed | marmoute | ||
Closed | marmoute |
$ hg debugbuilddag .+5000 | $ hg debugbuilddag .+5000 | ||||
$ hg debugnodemap --metadata | $ hg debugnodemap --metadata | ||||
uid: ???????????????? (glob) | uid: ???????????????? (glob) | ||||
tip-rev: 5000 | tip-rev: 5000 | ||||
data-length: 122880 | data-length: 122880 | ||||
data-unused: 0 | data-unused: 0 | ||||
$ f --size .hg/store/00changelog.n | $ f --size .hg/store/00changelog.n | ||||
.hg/store/00changelog.n: size=42 | .hg/store/00changelog.n: size=42 | ||||
Simple lookup works | |||||
$ ANYNODE=`hg log --template '{node|short}\n' --rev tip` | |||||
$ hg log -r "$ANYNODE" --template '{rev}\n' | |||||
5000 | |||||
$ f --sha256 .hg/store/00changelog-*.nd | $ f --sha256 .hg/store/00changelog-*.nd | ||||
.hg/store/00changelog-????????????????.nd: sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 (glob) | .hg/store/00changelog-????????????????.nd: sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 (glob) | ||||
$ hg debugnodemap --dump-new | f --sha256 --size | $ hg debugnodemap --dump-new | f --sha256 --size | ||||
size=122880, sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 | size=122880, sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 | ||||
$ hg debugnodemap --dump-disk | f --sha256 --bytes=256 --hexdump --size | $ hg debugnodemap --dump-disk | f --sha256 --bytes=256 --hexdump --size | ||||
size=122880, sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 | size=122880, sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 | ||||
0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | 0000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| | ||||
0010: ff ff ff ff ff ff ff ff ff ff fa c2 ff ff ff ff |................| | 0010: ff ff ff ff ff ff ff ff ff ff fa c2 ff ff ff ff |................| |