# HG changeset patch # User Pierre-Yves David # Date 1582896877 -3600 # Node ID 23df5ecfa365e83eac12ecaa28b80b677fc3e9e5 # Parent 2954173877693fc3b747a6441bad0006d0a5c27c nodemap: check that a simple lookup works fine I realised the code was not exercised much. Differential Revision: https://phab.mercurial-scm.org/D8180 diff -r 295417387769 -r 23df5ecfa365 tests/test-persistent-nodemap.t --- 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