[issue2064] firstpara template filter

David Hull bugs at mercurial.selenic.com
Thu Feb 25 00:47:21 UTC 2010


New submission from David Hull <hull at snap.com>:

It would be nice to have a template filter that returns the first paragraph
of a string for filtering summary messages.  Attached is a patch that adds this.

Longer justification: I've converted a code base from CVS to mercurial,
where the commit messages did not use the summary-on-the-first-line
mercurial convention.  Generally the first paragraph summarizes the change,
and the rest of the commit message gives more details.  It would be nice to
be able to specify a template so that the "hg log" output would return just
the first paragraph of each commit message.

----------
files: templatefilters.py-firstpara.patch
messages: 11884
nosy: DavidHull
priority: feature
status: unread
title: firstpara template filter

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2064>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: templatefilters.py-firstpara.patch
Type: application/octet-stream
Size: 746 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20100225/933e02db/attachment.obj>


More information about the Mercurial-devel mailing list