D5984: tests: demonstrate failure when cloning from a share via bundle2

mplamann (Mitchell Plamann) phabricator at mercurial-scm.org
Wed Feb 20 15:55:37 EST 2019


mplamann created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D5984

AFFECTED FILES
  tests/test-share.t

CHANGE DETAILS

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 @@
   -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
 



To: mplamann, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list