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

Brendan Cully brendan at kublai.com
Sat Sep 8 17:24:10 CDT 2007

On Saturday, 08 September 2007 at 23:30, Christian Ebert wrote:
> * Jonathan S. Shapiro on Saturday, September 08, 2007 at 10:23:33 -0400
> > On Sat, 2007-09-08 at 09:24 +0200, Christian Ebert wrote:
> >> MacOS X' sanity is rather limited:
> > 
> > Since when is this news?
> Apart from that, I'm curious about an example where simply
> dropping the local host component (which is done in case it's
> empty already for file:///..., or probably would have to done if
> it's valid) would lead to a different or dangerous result, not
> from a puristic, but practical Hg point of view. The resulting
> path is checked for validity. So could there happen anything
> worse than what happens now, in case you give an invalid path?

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

More information about the Mercurial-devel mailing list