changeset 6165:0d36de68669c

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.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 22 Feb 2008 21:58:15 +0100
parents 0c2b443fb3c3
children f857eac30cd5
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py	Thu Feb 21 23:00:50 2008 +0100
+++ b/mercurial/hg.py	Fri Feb 22 21:58:15 2008 +0100
@@ -119,6 +119,8 @@
         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:'):