# HG changeset patch # User Pierre-Yves David # Date 1610471941 -3600 # Node ID 7488067b8c1e3c0a9928eca0c53aed24f26a65ff # Parent a3ccbac659d808b45e6648758deb7349e6542c2a 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 diff -r a3ccbac659d8 -r 7488067b8c1e tests/test-persistent-nodemap.t --- 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% +