Mercurial > hg-stable
changeset 44482:23df5ecfa365
nodemap: check that a simple lookup works fine
I realised the code was not exercised much.
Differential Revision: https://phab.mercurial-scm.org/D8180
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 28 Feb 2020 14:34:37 +0100 |
parents | 295417387769 |
children | 75ada5fe9b62 |
files | tests/test-persistent-nodemap.t |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t Fri Mar 06 12:44:51 2020 +0100 +++ b/tests/test-persistent-nodemap.t Fri Feb 28 14:34:37 2020 +0100 @@ -19,6 +19,13 @@ data-unused: 0 $ f --size .hg/store/00changelog.n .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 .hg/store/00changelog-????????????????.nd: sha256=b961925120e1c9bc345c199b2cc442abc477029fdece37ef9d99cbe59c0558b7 (glob) $ hg debugnodemap --dump-new | f --sha256 --size