On Monday, December 21, 2015 at 6:37:36 AM UTC-8, Riedel, Torge wrote: > > Hi, > > > > today I faced a problem with TracTicketChangeLogPlugin: > > > > After analyzing the code and adding some debug outputs I can say the > following: > > 1. Ticket number is #39 > > 2. The db-query gives 46 revisions where LIKE '%#39%' matches > (which is much more than really necessary, since revisions referencing > tickets e.g. #391 are returned too) > > 3. The reg-ex matching hangs when there is a long commit message > (sorry I cannot post it here since it contains confidential information) > > a. The message contains Unicode chars, but changing the encoding of > the message to match to ‘ascii’ with ‘ignore’ option does not help > > b. The message has 41 lines (it’s a message of a tag commit in > subversion, where we list all tickets solved in this version, the format is: > Version vX.Y > ---- > * #n1 Fixed this > * #n2 Fixed that > … and so on > > c. The whole message has a count of 3073 chars > > > > The log pattern is configured to: > > > > [ticketlog] > > log_pattern = (\n|.)*#%s($|\D(\n|.)*) > > > > Which gives very good results. In general. Since I’m not a python > developer, help is appreciated. > > > > Regards > > Torge >
You could try the patterns mentioned in this ticket: https://trac-hacks.org/ticket/7884 See also: https://trac-hacks.org/ticket/12436 I suspect the issue you describe as "hanging on a long commit message" is due to searching every log message on every request. I hope to fix that in #11821, but I don't have a timetable yet for implementing the changes. https://trac-hacks.org/ticket/11821 - Ryan -- 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 https://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
