Show More
@@ -49,12 +49,13 b' def islocal(repo):' | |||||
49 | return repo.local() |
|
49 | return repo.local() | |
50 |
|
50 | |||
51 | def repository(ui, path=None, create=False): |
|
51 | def repository(ui, path=None, create=False): | |
|
52 | """return a repository object for the specified path""" | |||
52 | return _lookup(path).instance(ui, path, create) |
|
53 | return _lookup(path).instance(ui, path, create) | |
53 |
|
54 | |||
54 | def defaultdest(source): |
|
55 | def defaultdest(source): | |
55 | '''return default destination of clone if none is given''' |
|
56 | '''return default destination of clone if none is given''' | |
56 | return os.path.basename(os.path.normpath(source)) |
|
57 | return os.path.basename(os.path.normpath(source)) | |
57 |
|
58 | |||
58 | def clone(ui, source, dest=None, pull=False, rev=None, update=True, |
|
59 | def clone(ui, source, dest=None, pull=False, rev=None, update=True, | |
59 | stream=False): |
|
60 | stream=False): | |
60 | """Make a copy of an existing repository. |
|
61 | """Make a copy of an existing repository. |
General Comments 0
You need to be logged in to leave comments.
Login now