[prev in list] [next in list] [prev in thread] [next in thread]
List: trac
Subject: [Trac] Re: [TicketChangeLogPlugin] Document an alternative log_pattern
From: RjOllos <rjollos () gmail ! com>
Date: 2015-01-15 9:22:46
Message-ID: 911aa91e-eb8b-458e-85e1-fede466f2c4e () googlegroups ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Wednesday, January 14, 2015 at 12:14:25 AM UTC-8, Riedel, Torge wrote:
>
> 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
>
>
Since it's related I'll mention that in #11821 (1) I proposed to utilize
the patterns from Trac's CommitTicketUpdater (2). I think it would be good
to use the more familiar patterns in TicketChangeLogPlugin.
(1) http://trac-hacks.org/ticket/11821
(2) http://trac.edgewall.org/wiki/CommitTicketUpdater#Configure
--
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 trac-users+unsubscribe@googlegroups.com. To post to this group, send \
email to trac-users@googlegroups.com. Visit this group at \
http://groups.google.com/group/trac-users. For more options, visit \
https://groups.google.com/d/optout.
[Attachment #5 (text/html)]
<div dir="ltr">On Wednesday, January 14, 2015 at 12:14:25 AM UTC-8, Riedel, Torge \
wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: \
0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal">Hi,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">we use TicketChangeLogPlugin here in several \
instances. Since now we were limited in our commit messages to the format supported \
by default log_pattern.</span></p> <p class="MsoNormal"><span lang="EN-US">I played \
around with an online regex-tool to support all (I hope) commit messages containing a \
reference to the ticket. The result is:</span></p> <p class="MsoNormal"><span \
lang="EN-US"> </span></p> <p><span lang="EN-US">[ticketlog]</span></p>
<p><span lang="EN-US">log_pattern = (\n|.)*#%s($|\D(\n|.)*)</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Explanation:</span></p>
<p><span lang="EN-US"><span>1.<span style="font:7.0pt "Times New \
Roman""> </span></span></span><span \
lang="EN-US">Allow zero or more characters before the ticket id (including newline \
characters)</span></p> <p><span lang="EN-US"><span>2.<span style="font:7.0pt \
"Times New Roman""> \
</span></span></span><span lang="EN-US">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.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Feel free to document this log pattern on the \
wiki page of TicketChangeLogPlugin</span></p> <p class="MsoNormal"><span \
lang="EN-US"> </span></p> <p class="MsoNormal"><span \
lang="EN-US">Regards</span></p> <p class="MsoNormal"><span \
lang="EN-US">Torge</span></p> </div>
<p></p>
</div></blockquote><div><br>Since it's related I'll mention that in #11821 (1) I \
proposed to utilize the patterns from Trac's CommitTicketUpdater (2). I think it \
would be good to use the more familiar patterns in <span \
lang="EN-US">TicketChangeLogPlugin.</span><br><br>(1) \
http://trac-hacks.org/ticket/11821 <br>(2) \
http://trac.edgewall.org/wiki/CommitTicketUpdater#Configure<br></div></div>
<p></p>
-- <br />
You received this message because you are subscribed to the Google Groups "Trac \
Users" group.<br /> To unsubscribe from this group and stop receiving emails \
from it, send an email to <a \
href="mailto:trac-users+unsubscribe@googlegroups.com">trac-users+unsubscribe@googlegroups.com</a>.<br \
/> To post to this group, send email to <a \
href="mailto:trac-users@googlegroups.com">trac-users@googlegroups.com</a>.<br /> \
Visit this group at <a \
href="http://groups.google.com/group/trac-users">http://groups.google.com/group/trac-users</a>.<br \
/> For more options, visit <a \
href="https://groups.google.com/d/optout">https://groups.google.com/d/optout</a>.<br \
/>
------=_Part_1674_997176505.1421313766212--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic