changeset 46248:7488067b8c1e

persistent-nodemap: test that is it present after a clone The persistent nodemap is actually missing after local and stream clone. We start by adding a test for the case that works so that we can compare output after the fix. Differential Revision: https://phab.mercurial-scm.org/D9732
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 12 Jan 2021 18:19:01 +0100
parents a3ccbac659d8
children 3eb33aa237c0
files tests/test-persistent-nodemap.t
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-persistent-nodemap.t	Tue Jan 12 23:27:24 2021 +0100
+++ b/tests/test-persistent-nodemap.t	Tue Jan 12 18:19:01 2021 +0100
@@ -575,3 +575,28 @@
   data-length: 121088
   data-unused: 0
   data-unused: 0.000%
+
+Persistent nodemap and local/streaming clone
+============================================
+
+  $ cd ..
+
+standard clone
+--------------
+
+The persistent nodemap should exist after a streaming clone
+
+  $ hg clone --pull --quiet -U test-repo standard-clone
+  $ ls -1 standard-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
+  00changelog-*.nd (glob)
+  00changelog.n
+  00manifest-*.nd (glob)
+  00manifest.n
+  $ hg -R standard-clone debugnodemap --metadata
+  uid: * (glob)
+  tip-rev: 5005
+  tip-node: 90d5d3ba2fc47db50f712570487cb261a68c8ffe
+  data-length: 121088
+  data-unused: 0
+  data-unused: 0.000%
+