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

login
register
mail settings
Submitter phabricator
Date Feb. 25, 2019, 3:40 p.m.
Message ID <a269830a0e2d758b18338903c8d2b3c4@localhost.localdomain>
Download mbox | patch
Permalink /patch/38928/
State Not Applicable
Headers show

Comments

phabricator - Feb. 25, 2019, 3:40 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa62ad1be1671: tests: demonstrate failure when cloning from a share via bundle2 (authored by mplamann, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5984?vs=14154&id=14236

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

AFFECTED FILES
  tests/test-share.t

CHANGE DETAILS




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

Patch

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