[PATCH 2 of 3] hgweb, templates: apply the websub filter to revision descriptions

Mads Kiilerich mads at kiilerich.com
Sat Feb 9 05:28:32 CST 2013


On 02/09/2013 11:02 AM, Angel Ezquerra wrote:
> # HG changeset patch
> # User Angel Ezquerra <angel.ezquerra at gmail.com>
> # Date 1360363571 -3600
> # Node ID 0ca84e16d89af5c0125d19e741605caca09da49f
> # Parent  d2fe4130209f6877d841926df79ba02842c83e20
> hgweb, templates: apply the websub filter to revision descriptions
>
> In order to use this, add a [websub] section to your configuration and add
> websub expressions such as:
>
> italic = s/\b_(\S+)_\b/<i>\1<\/i>/
> bold = s/\*\b(\S+)\b\*/<b>\1<\/b>/
> bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a href="http://bz.selenic.com/\2">\1</a>!i

This should be documented in mercurial/help/config.txt .

I assume these template changes also has some intentional and accidental 
changes to the test results?

/Mads



More information about the Mercurial-devel mailing list