# HG changeset patch # User mitchell plamann # Date 1550692620 18000 # Node ID a62ad1be1671a6e38f88f7e56147030699e1db6e # Parent 4d21ebc4cb47ab1915dbe29889721202042644ad tests: demonstrate failure when cloning from a share via bundle2 Differential Revision: https://phab.mercurial-scm.org/D5984 diff -r 4d21ebc4cb47 -r a62ad1be1671 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