comparison 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
comparison
equal deleted inserted replaced
17843:66a613b59221 17844:b32e55e6c3c7
113 rui = remoteui(uiorrepo, opts) 113 rui = remoteui(uiorrepo, opts)
114 return _peerorrepo(rui, path, create).peer() 114 return _peerorrepo(rui, path, create).peer()
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'''
122 122
123 if not islocal(source): 123 if not islocal(source):