diff tests/test-persistent-nodemap.t @ 44465:336ec75ed1ac

nodemap: warm the persistent nodemap on disk with debugupdatecache When appropriate, the nodemap cache file will be created. Differential Revision: https://phab.mercurial-scm.org/D8173
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 18 Feb 2020 19:11:13 +0100
parents f7459da77f23
children 23df5ecfa365
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t	Sat Feb 29 19:31:33 2020 +0100
+++ b/tests/test-persistent-nodemap.t	Tue Feb 18 19:11:13 2020 +0100
@@ -118,3 +118,22 @@
   $ f --sha256 .hg/store/00changelog-*.nd --size
   .hg/store/00changelog-????????????????.nd: size=122944, sha256=755976b22b64ab680401b45395953504e64e7fa8c31ac570f58dee21e15f9bc0 (glob)
 #endif
+
+Test force warming the cache
+
+  $ rm .hg/store/00changelog.n
+  $ hg debugnodemap --metadata
+  $ hg debugupdatecache
+#if pure
+  $ hg debugnodemap --metadata
+  uid: ???????????????? (glob)
+  tip-rev: 5002
+  data-length: 122944
+  data-unused: 0
+#else
+  $ hg debugnodemap --metadata
+  uid: ???????????????? (glob)
+  tip-rev: 5002
+  data-length: 122944
+  data-unused: 0
+#endif