tests: demonstrate failure when cloning from a share via bundle2
authormitchell plamann <mplamann@janestreet.com>
Wed, 20 Feb 2019 14:57:00 -0500
changeset 41800 a62ad1be1671
parent 41799 4d21ebc4cb47
child 41801 2d835c42ab41
tests: demonstrate failure when cloning from a share via bundle2 Differential Revision: https://phab.mercurial-scm.org/D5984
tests/test-share.t
--- 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