persistent-nodemap: test it (does not) exist after a local clone
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 12 Jan 2021 18:19:17 +0100
changeset 46249 3eb33aa237c0
parent 46248 7488067b8c1e
child 46250 de2ed219fd00
persistent-nodemap: test it (does not) exist after a local clone This is currently buggy. We add a test before fixing the bug. Differential Revision: https://phab.mercurial-scm.org/D9733
tests/test-persistent-nodemap.t
--- a/tests/test-persistent-nodemap.t	Tue Jan 12 18:19:01 2021 +0100
+++ b/tests/test-persistent-nodemap.t	Tue Jan 12 18:19:17 2021 +0100
@@ -600,3 +600,13 @@
   data-unused: 0
   data-unused: 0.000%
 
+
+local clone
+------------
+
+The persistent nodemap should exist after a streaming clone
+
+  $ hg clone -U test-repo local-clone
+  $ ls -1 local-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
+  [1]
+  $ hg -R local-clone debugnodemap --metadata