equal
deleted
inserted
replaced
99 return repo |
99 return repo |
100 |
100 |
101 def peer(ui, opts, path, create=False): |
101 def peer(ui, opts, path, create=False): |
102 '''return a repository peer for the specified path''' |
102 '''return a repository peer for the specified path''' |
103 rui = remoteui(ui, opts) |
103 rui = remoteui(ui, opts) |
104 return _peerlookup(path).instance(rui, path, create) |
104 return repository(rui, path, create) |
105 |
105 |
106 def defaultdest(source): |
106 def defaultdest(source): |
107 '''return default destination of clone if none is given''' |
107 '''return default destination of clone if none is given''' |
108 return os.path.basename(os.path.normpath(source)) |
108 return os.path.basename(os.path.normpath(source)) |
109 |
109 |