# HG changeset patch # User mitchell plamann # Date 2019-02-20 19:57:00 # Node ID a62ad1be1671a6e38f88f7e56147030699e1db6e # Parent 4d21ebc4cb47ab1915dbe29889721202042644ad tests: demonstrate failure when cloning from a share via bundle2 Differential Revision: https://phab.mercurial-scm.org/D5984 diff --git a/tests/test-share.t b/tests/test-share.t --- a/tests/test-share.t +++ b/tests/test-share.t @@ -124,6 +124,16 @@ hg serve shared clone -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