changeset 41791:a62ad1be1671

tests: demonstrate failure when cloning from a share via bundle2 Differential Revision: https://phab.mercurial-scm.org/D5984
author mitchell plamann <mplamann@janestreet.com>
date Wed, 20 Feb 2019 14:57:00 -0500
parents 4d21ebc4cb47
children 2d835c42ab41
files tests/test-share.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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