[PATCH RFC] util: make str(url) return file:/// for abs paths again

Sune Foldager cryo at cyanite.org
Thu May 12 11:33:40 CDT 2011


On 2011-05-12 16:47, Peter Arrenbrecht wrote:
># HG changeset patch
># User Peter Arrenbrecht <peter.arrenbrecht at gmail.com>
># Date 1305211316 -7200
># Node ID 9648ca19f5c98758ac76e2ef90d7aca773ee9763
># Parent  2daa5179e73fdbf7bd0acbbc2ffc8f30d54d679b
>util: make str(url) return file:/// for abs paths again
>
>str(url) was recently changed to return only file:/. However, the canonical way to represent
>absolute local paths is file:/// [1], which is also expected by at least hgsubversion.

I'm +1. While most browsers (at least) accept, file:/, we should generate proper URLs.

Sune


More information about the Mercurial-devel mailing list