filtering changelog messages - potention extension for hgweb?

Jan Capek jen at jikos.cz
Tue Dec 2 10:47:24 UTC 2008


On Tue, 2 Dec 2008, Dirkjan Ochtman wrote:

> Jan Capek <jen <at> jikos.cz> writes:
> > 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
> 
> Have a look at the interhg extension, and tell me why it doesn't suffice. :)
> 
> Cheers,
> 
> Dirkjan
Actually, the interhg documentation says one case where it's not that 
good: 
- the extension overloads the escape filter and this filter is used all 
  over the templates. In case of changelog titles this yields to nesteded 
  <a> tags since the titles are being escaped as well

- what if I want the escape filter but don't want the expansion to bts 
  e.g. in the titles where it looks ugly?

In my opinion, the interhg should add a separate filter - similar to my 
extension. This filter could then be used in the templates.
Overall, I like interhg better since it takes a more robust 
approach. Mine, was just a draft for what I needed it.

Any thoughts?

Jan

> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
> 




More information about the Mercurial mailing list