Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8353 closed enhancement (worksforme)

trac-post-commit-hook should allow "Ref" for _cmdRefs

Reported by: d+trac@… 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'}

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: worksforme
Status: newclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.