##// END OF EJS Templates
clone: don't %-escape the default destination (issue3145)
Matt Mackall -
r17844:b32e55e6 stable
parent child Browse files
Show More
@@ -115,7 +115,7 b' def peer(uiorrepo, opts, path, create=Fa'
115
115
116 def defaultdest(source):
116 def defaultdest(source):
117 '''return default destination of clone if none is given'''
117 '''return default destination of clone if none is given'''
118 return os.path.basename(os.path.normpath(source))
118 return os.path.basename(os.path.normpath(util.url(source).path))
119
119
120 def share(ui, source, dest=None, update=True):
120 def share(ui, source, dest=None, update=True):
121 '''create a shared repository'''
121 '''create a shared repository'''
@@ -284,6 +284,13 b' Test remote paths with spaces (issue2983'
284 $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
284 $ hg id --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
285 73649e48688a
285 73649e48688a
286
286
287 Test (non-)escaping of remote paths with spaces when cloning (issue3145):
288
289 $ hg clone --ssh "python \"$TESTDIR/dummyssh\"" "ssh://user@dummy/a repo"
290 destination directory: a repo
291 abort: destination 'a repo' is not empty
292 [255]
293
287 Test hg-ssh using a helper script that will restore PYTHONPATH (which might
294 Test hg-ssh using a helper script that will restore PYTHONPATH (which might
288 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right
295 have been cleared by a hg.exe wrapper) and invoke hg-ssh with the right
289 parameters:
296 parameters:
@@ -374,3 +381,4 b' Test hg-ssh in read-only mode:'
374 Got arguments 1:user@dummy 2:hg init 'a repo'
381 Got arguments 1:user@dummy 2:hg init 'a repo'
375 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
382 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
376 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
383 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
384 Got arguments 1:user@dummy 2:hg -R 'a repo' serve --stdio
General Comments 0
You need to be logged in to leave comments. Login now