tests: demonstrate failure when cloning from a share via bundle2
Differential Revision: https://phab.mercurial-scm.org/D5984
--- a/tests/test-share.t Fri Feb 22 00:54:06 2019 +0530
+++ b/tests/test-share.t Wed Feb 20 14:57:00 2019 -0500
@@ -124,6 +124,16 @@
-rw-r--r-- 2 b
+Cloning a shared repo via bundle2 wrongly adds "shared" to the clone's requirements
+
+ $ cd ..
+ $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
+ $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
+ shared
+ $ hg id --cwd cloned-via-bundle2 -r tip
+ abort: $ENOENT$: '$TESTTMP/cloned-via-bundle2/.hg/sharedpath'
+ [255]
+ $ cd repo2
test unshare command