Show More
@@ -5,7 +5,7 b'' | |||
|
5 | 5 | # This software may be used and distributed according to the terms of the |
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 |
import parser, error |
|
|
8 | import parser, error | |
|
9 | 9 | from i18n import _ |
|
10 | 10 | |
|
11 | 11 | elements = { |
@@ -98,6 +98,11 b" def repository(ui, path='', create=False" | |||
|
98 | 98 | hook(ui, repo) |
|
99 | 99 | return repo |
|
100 | 100 | |
|
101 | def peer(ui, opts, path, create=False): | |
|
102 | '''return a repository peer for the specified path''' | |
|
103 | rui = remoteui(ui, opts) | |
|
104 | return repository(rui, path, create) | |
|
105 | ||
|
101 | 106 | def defaultdest(source): |
|
102 | 107 | '''return default destination of clone if none is given''' |
|
103 | 108 | return os.path.basename(os.path.normpath(source)) |
General Comments 0
You need to be logged in to leave comments.
Login now