[issue3145] spaces in repository names causing problems: % codes made in local directory name upon cloning
Frank Kingswood
frank at kingswood-consulting.co.uk
Fri Dec 9 21:11:49 CST 2011
Hi!
(cc the list)
I think the solution is to let hg.defaultdest parse the URL correctly.
--- a/mercurial/hg.py Fri Dec 09 17:58:12 2011 +0100
+++ b/mercurial/hg.py Sat Dec 10 10:23:49 2011 +0800
@@ -105,7 +105,7 @@
def defaultdest(source):
'''return default destination of clone if none is given'''
- return os.path.basename(os.path.normpath(source))
+ return os.path.basename(os.path.normpath(util.url(source).path))
def share(ui, source, dest=None, update=True):
'''create a shared repository'''
Frank
--
------------------------------------------------------------------------
Frank A. Kingswoodfrank at kingswood-consulting.co.uk
Cambridge, United Kingdom +44-7545-209 100
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111210/a669fe89/attachment.html>
More information about the Mercurial-devel
mailing list