mercurial/hg.py
branchstable
changeset 18553 b6b9475c563a
parent 18511 798ab869b2ee
child 18944 a9c443b3b240
equal deleted inserted replaced
18552:e8efcc8ff5c0 18553:b6b9475c563a
   120     rui = remoteui(uiorrepo, opts)
   120     rui = remoteui(uiorrepo, opts)
   121     return _peerorrepo(rui, path, create).peer()
   121     return _peerorrepo(rui, path, create).peer()
   122 
   122 
   123 def defaultdest(source):
   123 def defaultdest(source):
   124     '''return default destination of clone if none is given'''
   124     '''return default destination of clone if none is given'''
   125     return os.path.basename(os.path.normpath(util.url(source).path))
   125     return os.path.basename(os.path.normpath(util.url(source).path or ''))
   126 
   126 
   127 def share(ui, source, dest=None, update=True):
   127 def share(ui, source, dest=None, update=True):
   128     '''create a shared repository'''
   128     '''create a shared repository'''
   129 
   129 
   130     if not islocal(source):
   130     if not islocal(source):