filtering changelog messages - potention extension for hgweb?

Arne Babenhauserheide arne_bab at web.de
Wed Dec 3 17:35:54 CST 2008


Hi, 

Did I understand it correctly that this extension turns bug IDs into links to 
the bugtracker? 

From what I see in its docstring it allows for replacing any kind of input 
(regexp based) with a string built from a static string, a base url and some 
part of the input. 

And it sounds quite interesting to me (but might have been drowned by the 1.1 
release). 

And I like it that the code is short and clean. 

Can you post an example for a .hgrc entry which does a simple replacement? 

Best wishes, 
Arne

Am Montag 01 Dezember 2008 22:14:17 schrieb Jan Capek:
> Hi,
>
> I have come across an hgweb usecase where I needed a filtering extension:
>
> Use case
> --------
> - a mercurial repository is being used with trac for issue tracking. The
>   repository has hooks to check that changelog messages contain valid bug
>   ID's (similar to bugzilla extension)
>
> - the bug ID's that show up in changelog messages should be
>   hyperlinks to the bug tracking system when using the hgweb interface
>
>
> Implementation
> --------------
> To implement the above scenario a new filter extension has been created.
> This extension is configurable via hgrc ([urllnk] section).
>
>
>
> I am attaching the extension itself and an example patch of the gitweb
> style to show its use.
>
> Would this extension be of any interest to mercurial community, is it
> possible to post it on the selenic.com wiki?
>
>
> Thanks,
>
> Jan

-- 
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the 
history of free software.
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.

-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20081204/3d743cae/attachment.pgp 


More information about the Mercurial mailing list