Show More
@@ -718,8 +718,7 b' def clone(ui, source, dest=None, **opts)' | |||||
718 | if opts['remotecmd']: |
|
718 | if opts['remotecmd']: | |
719 | ui.setconfig("ui", "remotecmd", opts['remotecmd']) |
|
719 | ui.setconfig("ui", "remotecmd", opts['remotecmd']) | |
720 |
|
720 | |||
721 | if not os.path.exists(source): |
|
721 | source = ui.expandpath(source) | |
722 | source = ui.expandpath(source) |
|
|||
723 |
|
722 | |||
724 | d = Dircleanup(dest) |
|
723 | d = Dircleanup(dest) | |
725 | abspath = source |
|
724 | abspath = source |
@@ -154,6 +154,10 b' class ui(object):' | |||||
154 | return user |
|
154 | return user | |
155 |
|
155 | |||
156 | def expandpath(self, loc, root=""): |
|
156 | def expandpath(self, loc, root=""): | |
|
157 | """Return repository location relative to cwd or from [paths]""" | |||
|
158 | if os.path.exists(loc): | |||
|
159 | return loc | |||
|
160 | ||||
157 | paths = {} |
|
161 | paths = {} | |
158 | for name, path in self.configitems("paths"): |
|
162 | for name, path in self.configitems("paths"): | |
159 | m = path.find("://") |
|
163 | m = path.find("://") |
General Comments 0
You need to be logged in to leave comments.
Login now