##// END OF EJS Templates
bundle2: don't send "shared" requirement when cloning from a share...
mitchell plamann -
r41958:2d835c42 default
parent child Browse files
Show More
@@ -1664,6 +1664,7 b' def addpartrevbranchcache(repo, bundler,'
1664 mandatory=False)
1664 mandatory=False)
1665
1665
1666 def _formatrequirementsspec(requirements):
1666 def _formatrequirementsspec(requirements):
1667 requirements = [req for req in requirements if req != "shared"]
1667 return urlreq.quote(','.join(sorted(requirements)))
1668 return urlreq.quote(','.join(sorted(requirements)))
1668
1669
1669 def _formatrequirementsparams(requirements):
1670 def _formatrequirementsparams(requirements):
@@ -124,15 +124,14 b' hg serve shared clone'
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
127 Cloning a shared repo via bundle2 results in a non-shared clone
128
128
129 $ cd ..
129 $ cd ..
130 $ hg clone -q --stream --config ui.ssh="$PYTHON \"$TESTDIR/dummyssh\"" ssh://user@dummy/`pwd`/repo2 cloned-via-bundle2
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"
131 $ cat ./cloned-via-bundle2/.hg/requires | grep "shared"
132 shared
132 [1]
133 $ hg id --cwd cloned-via-bundle2 -r tip
133 $ hg id --cwd cloned-via-bundle2 -r tip
134 abort: $ENOENT$: '$TESTTMP/cloned-via-bundle2/.hg/sharedpath'
134 c2e0ac586386 tip
135 [255]
136 $ cd repo2
135 $ cd repo2
137
136
138 test unshare command
137 test unshare command
General Comments 0
You need to be logged in to leave comments. Login now