nodemap: check that a simple lookup works fine
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 28 Feb 2020 14:34:37 +0100
changeset 44464 23df5ecfa365
parent 44463 295417387769
child 44465 75ada5fe9b62
nodemap: check that a simple lookup works fine I realised the code was not exercised much. Differential Revision: https://phab.mercurial-scm.org/D8180
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