Modify

Opened 18 years ago

Closed 17 years ago

Last modified 17 years ago

#749 closed enhancement (worksforme)

Allow Custom fields to be updated via commit logs from svn

Reported by: James Mills Owned by: Russ Tyndall
Priority: normal Component: TimingAndEstimationPlugin
Severity: normal Keywords: script, commit, log
Cc: Trac Release: 0.10

Description

I apologise if this plugin is already capable of this.

  • Is there a script for this ?
  • Is the plugin capable of doing it ?

Attachments (1)

trac-post-commit-hook (8.1 KB) - added by andy@… 17 years ago.
post-commit-hook with time-registration

Download all attachments as: .zip

Change History (5)

comment:1 Changed 18 years ago by anonymous

There is a script floating around that does this, but I havnt actually put it into this plugin yet. I probably will at somepoint as my boss has also requested this.

More than happy to accept a patch that fixes this up.

comment:2 Changed 18 years ago by anonymous

http://trac.edgewall.org/wiki/TimeTracking contains data about how to setup the svn commit hook.

I am having a really hard time getting this comment to commit because it triggers trac spam protection.

Changed 17 years ago by andy@…

Attachment: trac-post-commit-hook added

post-commit-hook with time-registration

comment:3 Changed 17 years ago by andy@…

Resolution: worksforme
Status: newclosed

Hello together.

http://trac.edgewall.org/wiki/TimeTracking contains a section that describes, how to customize Trac with a patch - the section that describes the usage of TimeAndEstimationPlugin does not talk of the post-commit-hook.

The patch seems to listen on changes on the ticket, to recognize the spent hours.

So, I changed the post-commit-hook for Trac 10.2 to allow the following syntax in the commit-comment:

I did some changes, fixes #123 (2.5h)

This fixes Ticket 123 and adds 2.5h by using the "hours"-field.

I attach my post-commit-hook. Have fun with it =)

comment:4 Changed 17 years ago by anonymous

Thanks, I actually had someone else email me this last week, but have been under very tight deadlines and did not get to post a bit about it.

Thanks for the effort, I will post something about this on the front page. Russ

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.