[PATCH] Accept file://localhost/ style urls as local

Christian Ebert blacktrash at gmx.net
Sat Sep 8 02:24:06 CDT 2007

* Jonathan S. Shapiro on Thursday, September 06, 2007 at 23:16:53 -0400
> On Thu, 2007-09-06 at 19:28 -0700, Brendan Cully wrote:
>> I'd be tempted to just skip over the host part of a file: URL --
>> anything other than a local hostname is probably useless anyway.
> Unfortunately, this does not satisfy the URI specification. The intended
> use of hostnames in file: URIs is to allow a sanity check that you are
> making the local access on the intended host.

MacOS X' sanity is rather limited:

$ open file://invalidnonsense/valid/path/to/file

opens the file.

keyword extension for Mercurial (http://selenic.com/mercurial):
Mercurial crew development repository + keyword extension:

More information about the Mercurial-devel mailing list