Modify ↓
Opened 18 years ago
Closed 18 years ago
#3628 closed enhancement (fixed)
[PATCH] add optional literal word "ticket" to trac-post-commit-hook
Reported by: | JoshuaFranklin | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | general | Version: | devel |
Severity: | normal | Keywords: | |
Cc: | joshuadfranklin@…, hvr@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
We make good use of the trac-post-commit-hook but developers have complained that it's awkward to put just "addresses #123" instead of "addresses ticket #123". So, I edited the regex in trac-post-commit-hook to have that optional keyword—-basically just r"(?:ticket\s+?|)"—-and we're using it in our trac installation. I also changed the regex to use re.VERBOSE and commented it fully so it's easier to read.
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | trac-post-commit-hook.patch added |
---|
comment:1 by , 18 years ago
Cc: | added |
---|---|
Milestone: | → 0.10.1 |
comment:2 by , 18 years ago
Milestone: | 0.10.5 → 0.11 |
---|
comment:3 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Forgot to close this one yesterday.
Note:
See TracTickets
for help on using tickets.
I had the same problem, but rather prefered to keep the TracLinks syntax, and implemented something similiar to your patch, but with
closes ticket:3628
instead ofcloses ticket 3628
:contrib/trac-post-commit-hook
s, fixes#[0-9]+(?:(?:[, &]*|[ ]?and[ ]?)#[0-9]+)*)' + rghtEnv)#([0-9]*)')