Opened 16 years ago
Closed 16 years ago
#8353 closed enhancement (worksforme)
trac-post-commit-hook should allow "Ref" for _cmdRefs
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | version control | Version: | none |
| Severity: | normal | Keywords: | |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Just had a user complain that his svn commit didn't show up in his ticket when he did "Ref #1234"
"ref" isn't one of the _supported_cmds, but it probably should be. "fix" and "fixes" are both supported, as are "close" and "closes". Making people remember to use only the plural form is a bit error-prone. So, for consistency, Trac should support "ref" in addition to "refs"
This is literally a one-liner:
—- trac-post-commit-hook 2009-02-16 15:15:20.000000000 -0500 +++ trac-post-commit-hook.new 2009-06-05 08:46:01.000000000 -0400 @@ -136,6 +136,7 @@
're': '_cmdRefs', 'references': '_cmdRefs', 'refs': '_cmdRefs',
+ 'ref': '_cmdRefs',
'see': '_cmdRefs'}



This is already solved in the new commit_ticket_update.py plugin in multirepos, where you can specify the command words in an option in
trac.ini.