Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#749 closed enhancement (worksforme)

Allow Custom fields to be updated via commit logs from svn

Reported by: JamesMills Owned by: bobbysmith007
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@… 8 years ago.
post-commit-hook with time-registration

Download all attachments as: .zip

Change History (5)

comment:1 Changed 8 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 8 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 8 years ago by andy@…

post-commit-hook with time-registration

comment:3 Changed 8 years ago by andy@…

  • Resolution set to worksforme
  • Status changed from new to closed

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 8 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

Add Comment

Modify Ticket

Action
as closed The owner will remain bobbysmith007.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.