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

Angel Ezquerra angel.ezquerra at gmail.com
Sat Feb 9 14:58:29 CST 2013


On Sat, Feb 9, 2013 at 11:28 AM, Mads Kiilerich <mads at kiilerich.com> wrote:
> 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
>

I resent a new version that adds the documentation. I also ran the
hgweb tests and everything seems fine:

$ ./run-tests.py test-hgweb*.t
.............
# Ran 13 tests, 0 skipped, 0 failed.


Angel


More information about the Mercurial-devel mailing list