#12436 closed defect (duplicate)
Commit Changelog Reference # anywhere in string
Reported by: | anonymous | Owned by: | Richard Liao |
---|---|---|---|
Priority: | normal | Component: | TracTicketChangelogPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
Is there a way to get this plugin to function with the #ticketNum located anywhere in the string. Right now it only works at the beginning of the string. My log pattern in my ini file is:
log_pattern = \s*#%s[:\s]+.*
I would like to be able to say:
"The changes in this commit pertain to ticket #40"
rather than be restricted to:
"#40 relates to this commit"
Attachments (0)
Change History (5)
comment:1 Changed 9 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:3 Changed 9 years ago by
Is the syntax of CommitTicketUpdater functional, or are you still developing it? If it is functional, why does the log_pattern
exist in the configuration file. If this is not functional, you should have mentioned that.
comment:4 Changed 9 years ago by
The features described in #11821, including utilization of CommitTicketUpdater syntax, have not yet been implemented.
#11821 proposes to use trac:wiki:CommitTicketUpdater#Usage syntax to extract tokens such as Refs #1 anywhere in the string. So closing as a duplicate of #11821.
For now, you could try replacing re.match with re.search. You might get too many false positives though. That's one reason why I think it would be better to use the syntax of CommitTicketUpdater.