[UPDATE] For reference, my global_trac.ini (non-commented is with stable,
commented is what I switched to when trying to use 1.0.0 from svn).
[components]
multicommitupdater.* = enabled
[multicommitupdater]
envelope = ()
commands.refs = re see rel
commands.close = fix fixes close closes
check_perms = false
#[ticket]
#commit_ticket_update_envelope = ()
#commit_ticket_update_commands.refs = re see rel
#commit_ticket_update_commands.close = fix fixes close closes
In my tools.ini I have:
[ticket]
commit_ticket_update_short_name=xxx
[components]
tracopt.ticket.commit_updater.committicketreferencemacro = enabled
#tracopt.ticket.commit_updater.committicketupdater = enabled
#disabled when using version 1.0.0x
tracopt.ticket.commit_updater.committicketupdater = disabled
I've also added the following debug to the tool, which isn't logged:
def _parse_message(self, message):
"""Parse the commit message and return the ticket references."""
self.log.debug("xxxxxxxxxxxx parsing the message")
cmd_groups = self.command_re.findall(message)
(...)
# Project name is the first thing in the list, then tickets.
name = project_groups.pop(0)
self.log.debug("xxx name is: #%s", name)
self.log.debug("xxx project_name is:
#%s",self.project_name.lower())
Still investigating...
On Tue, Aug 23, 2016 at 1:02 PM, Miguel Almeida <[email protected]>
wrote:
> Thanks Ryan,
>
> I'm trying to test it, but with no luck. I've removed the previous plugin
> and added the new one to the plugins directory and, while the new version
> is being loaded [1], I'm not being able to trigger the plugin (no debug log
> after [2]).
> I'll try to investigate.
>
> [1]
> 2016-08-23 12:49:29,323 Trac[loader] DEBUG: Adding plugin
> MultiProjectCommitTicketUpdater 1.0.0dev from /srv/trac/plugins/
> MultiProjectCommitTicketUpdater-
> 1.0.0dev-py2.6.egg
>
> [2] 2016-08-23 12:49:29,924 Trac[api] DEBUG: Event changeset_added on
> Internal tools for revision 6194
>
>
> On Mon, Aug 22, 2016 at 1:47 PM, RjOllos <[email protected]> wrote:
>
>>
>>
>> On Monday, August 22, 2016 at 4:22:40 AM UTC-4, RjOllos wrote:
>>>
>>>
>>>
>>> On Sunday, August 21, 2016 at 12:38:45 PM UTC-4, Miguel Almeida wrote:
>>>>
>>>> A project short name would be the best of the two options, I suppose.
>>>> It could be set in the admin section of the project and would work
>>>> essentially the same way as the alias in intertrac. I like that!
>>>>
>>>
>>> I'm looking at implementing it after refactoring the code a bit. You can
>>> follow this ticket if you'd like:
>>> https://trac-hacks.org/ticket/12852
>>>
>>> - Ryan
>>>
>>
>> #12852 is implemented now. You'll need to reinstall from the 1.0
>> directory:
>> https://trac-hacks.org/svn/multiprojectcommitticketupdaterplugin/1.0/
>>
>> Please comment on #12852 if you're able to test it out.
>>
>> - Ryan
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Trac Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/trac-users/62Eu-uJZWEw/unsubscribe.
>> To unsubscribe from this group and all its topics, 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.
>>
>
>
--
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.