Non-Working Mercurial after Mac OS X Lion (10.7) Install
Kevin Bullock
kbullock+mercurial at ringworld.org
Mon Aug 22 17:08:19 UTC 2011
On Aug 22, 2011, at 8:21 AM, Mads Kiilerich wrote:
> (The URL grammar in the RFC do not the match the usual semantics of http URLs. http://foo/bar do usually not point at the absolute path /bar but the relative path bar relative to documentroot,
Just to be pedantic, that's actually _entirely_ consistent with the RFC. /bar is the absolute path in the HTTP resource space on that host. HTTP doesn't care about the layout of the physical filesystem, or even whether there exists a one-to-one mapping between resource paths and filesystem paths.
> just like http://foo/~bar usually is interpreted as ~bar (which is expanded) and not as /~bar.
...except that the request your Web browser sends is precisely "GET /~bar". File paths and URLs are entirely different things, and any mapping between them that happens to arise from serving static files from a filesystem over HTTP is purely an arrangement of convenience. But again, this level of pedantry is only required when implementing a URL parser(!).
pacem in terris / mir / shanti / salaam / heiwa
Kevin R. Bullock
More information about the Mercurial
mailing list