[PATCH 0 of 4 stable] hgweb: fix broken URLs of RSS/Atom feeds (issue1772)

Yuya Nishihara yuya at tcha.org
Wed Mar 10 09:33:28 CST 2010


These patches should fix issue1772: RSS feeds have broken links in 1.3.1

RSS/Atom template uses {urlbase}{url} to construct full URL.

Because {url} is built from SCRIPT_NAME and REPO_NAME, it shouldn't
contain 'scheme://host:port' part. But since 2eb18c780287, {url} becomes full URL
when you specify web.baseurl at config file.

This patch splits web.baseurl into SERVER_NAME, SERVER_PORT and SCRIPT_NAME
accordingly.


More information about the Mercurial-devel mailing list