Edgewall Software

Changes between Initial Version and Version 6 of Ticket #11349


Ignore:
Timestamp:
Dec 14, 2013, 5:38:25 PM (10 years ago)
Author:
Ryan J Ollos
Comment:

Committed to 1.0-stable in [12325:12326], and merged to trunk in [12327].

In Trac 1.0.2dev-r12326 and later, the simpler CommitTicketUpdater subclass can be used:

from tracopt.ticket.commit_updater import CommitTicketUpdater

class CustomCommitTicketUpdater(CommitTicketUpdater):

    ticket_command = (r'(?P<ticket>%s(?:(?:[, &]*|[ ]?and[ ]?)%s)*)\s*'
                      r'(?P<action>[A-Za-z]*)\s*.?' %
                      (CommitTicketUpdater.ticket_reference,
                       CommitTicketUpdater.ticket_reference))

It was mentioned earlier that you should disable tracopt.ticket.commit_updater.CommitTicketUpdater. However, it seems to work fine to leave them both enabled, and then both syntaxes can be used.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11349

    • Property Status newassigned
    • Property Cc ethan.jucovy@… added
    • Property Keywords CommitTicketUpdater added
    • Property Milestone undecided1.0.2
    • Property Owner set to Ryan J Ollos
  • Ticket #11349 – Release Notes

    initial v6  
     1!CommitTicketUpdater: Use `finditer` for matching in the regex, so that order of patterns can be interchanged when overriding the regex in subclasses.