Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.py @ 17844:b32e55e6c3c7 stable
clone: don't %-escape the default destination (issue3145)
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 19 Oct 2012 14:47:55 -0500 |
parents | 92980a8dfdfe |
children | c9339efed653 |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Oct 19 15:45:16 2012 +0200 +++ b/mercurial/hg.py Fri Oct 19 14:47:55 2012 -0500 @@ -115,7 +115,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'''