Mercurial > hg
comparison tests/test-share.t @ 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 | f6d37e84d8f9 |
children | 2d835c42ab41 |
comparison
equal
deleted
inserted
replaced
41790:4d21ebc4cb47 | 41791:a62ad1be1671 |
---|---|
122 | 122 |
123 -rw-r--r-- 4 a | 123 -rw-r--r-- 4 a |
124 -rw-r--r-- 2 b | 124 -rw-r--r-- 2 b |
125 | 125 |
126 | 126 |
127 Cloning a shared repo via bundle2 wrongly adds "shared" to the clone's requirements | |
128 | |
129 $ cd .. | |
130 $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2 | |
131 $ cat ./cloned-via-bundle2/.hg/requires | grep "shared" | |
132 shared | |
133 $ hg id --cwd cloned-via-bundle2 -r tip | |
134 abort: $ENOENT$: '$TESTTMP/cloned-via-bundle2/.hg/sharedpath' | |
135 [255] | |
136 $ cd repo2 | |
127 | 137 |
128 test unshare command | 138 test unshare command |
129 | 139 |
130 $ hg unshare | 140 $ hg unshare |
131 $ test -d .hg/store | 141 $ test -d .hg/store |