Skip to content
Snippets Groups Projects
Commit bcc79fa3 authored by Augie Fackler's avatar Augie Fackler
Browse files

url wasn't ever published as url.url, and is now util.url

parent ed28dd69
No related branches found
No related tags found
No related merge requests found
......@@ -42,4 +42,14 @@
# support for `hg clone localgitrepo`
_oldlocal = hg.schemes['file']
try:
urlcls = hgutil.url
except AttributeError:
class urlcls(object):
def __init__(self, path):
self.p = hgutil.drop_scheme('file', path)
def localpath(self):
return self.p
def _local(path):
......@@ -45,8 +55,5 @@
def _local(path):
try:
p = hgutil.drop_scheme('file', path)
except AttributeError:
p = url.url(path).localpath()
p = urlcls(path).localpath()
if (os.path.exists(os.path.join(p, '.git')) and
not os.path.exists(os.path.join(p, '.hg'))):
return gitrepo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment