# HG changeset patch # User Thomas Arendsen Hein # Date 2008-02-22 20:58:15 # Node ID 0d36de68669c81390eb64c9dd81af16f2c7f3ef6 # Parent 0c2b443fb3c33ab02aad7093a418ae00a8c8c3db Allow "file://localhost/" in addition to "file:///" (issue728) file://localhost/ URLs are generated by Mac OS X API calls like [NSURL fileURLWithPath:]. Imported patch from Paul Bx. 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:'):