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

Brendan Cully brendan at kublai.com
Sun Sep 9 00:08:48 CDT 2007


On Sunday, 09 September 2007 at 01:06, Jonathan S. Shapiro wrote:
> On Sat, 2007-09-08 at 15:24 -0700, Brendan Cully wrote:
> 
> > I'd like to see an example too (preferably not a theoretical one). It
> > seems to me that the host part of a file: URL means either "same host
> > you're on" or "this URL is invalid" (since there's no specified way to
> > access the other host). This makes the hostname field pretty
> > worthless.
> 
> I answered this before. It is used to signal "this URL is not valid on
> the current host". It is an error check.

An example would be an application that deliberately generates URLs
with non-local hostnames for this reason.


More information about the Mercurial-devel mailing list