persistent-nodemap: test it (does not) exist after a stream clone
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 12 Jan 2021 18:13:55 +0100
changeset 46250 de2ed219fd00
parent 46249 3eb33aa237c0
child 46251 40ec2173f4dd
persistent-nodemap: test it (does not) exist after a stream clone This is currently buggy. We add a test before fixing the bug. Differential Revision: https://phab.mercurial-scm.org/D9734
tests/test-persistent-nodemap.t
--- a/tests/test-persistent-nodemap.t	Tue Jan 12 18:19:17 2021 +0100
+++ b/tests/test-persistent-nodemap.t	Tue Jan 12 18:13:55 2021 +0100
@@ -610,3 +610,13 @@
   $ ls -1 local-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
   [1]
   $ hg -R local-clone debugnodemap --metadata
+
+stream clone
+------------
+
+The persistent nodemap should exist after a streaming clone
+
+  $ hg clone -U --stream --config ui.ssh="\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/test-repo stream-clone --quiet
+  $ ls -1 stream-clone/.hg/store/ | egrep '00(changelog|manifest)(\.n|-.*\.nd)'
+  [1]
+  $ hg -R stream-clone debugnodemap --metadata