Hi,

we use TicketChangeLogPlugin here in several instances. Since now we were 
limited in our commit messages to the format supported by default log_pattern.
I played around with an online regex-tool to support all (I hope) commit 
messages containing a reference to the ticket. The result is:


[ticketlog]

log_pattern = (\n|.)*#%s($|\D(\n|.)*)

Explanation:

1.       Allow zero or more characters before the ticket id (including newline 
characters)

2.       Allow zero or more characters after the ticket id (including newline 
characters), but if there are characters after the ticket id, the first must 
not be a digit (0..9). Which avoids listing ticket references to e.g. ticket 
#40 in ticket #4.

Feel free to document this log pattern on the wiki page of TicketChangeLogPlugin

Regards
Torge


CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711 7825-30, Fax: 
+49 711 7825-4000, Internet: www.cenit.de
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen, Oelsnitz, 
Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des Aufsichtsrats), 
Hubert Leypoldt, Andreas Karrer
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166 1040 00 
SWIFT-CODE : DEUTDESS,
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532 0155 
00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to