equal
deleted
inserted
replaced
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): |