Patchwork D9732: persistent-nodemap: test that is it present after a clone

login
register
mail settings
Submitter phabricator
Date Jan. 12, 2021, 10:40 p.m.
Message ID <differential-rev-PHID-DREV-2ih3c3c7pkfstzbymrha-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48041/
State Superseded
Headers show

Comments

phabricator - Jan. 12, 2021, 10:40 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The persistent nodemap is actually missing after local and stream clone. We start by adding a test ffor the case that works so that we can compare output after the fix.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9732

AFFECTED FILES
  tests/test-persistent-nodemap.t

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-persistent-nodemap.t b/tests/test-persistent-nodemap.t
--- a/tests/test-persistent-nodemap.t
+++ b/tests/test-persistent-nodemap.t
@@ -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%
+