diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -119,6 +119,8 @@ def clone(ui, source, dest=None, pull=Fa ui.status(_("destination directory: %s\n") % dest) def localpath(path): + if path.startswith('file://localhost/'): + return path[16:] if path.startswith('file://'): return path[7:] if path.startswith('file:'):