Edgewall Software
Modify

Opened 13 years ago

Last modified 13 years ago

#10426 new task

Refactor pre-commit-hook to handle post-commit-hook features

Reported by: Anthony O. Owned by:
Priority: normal Milestone: unscheduled
Component: version control Version: 0.12-stable
Severity: normal Keywords: pre-commit-hook post-commit-hook
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

The current version of contrib/trac-pre-commit-hook doesn't use the same Trac component / code than tracopt/ticket/commit_updater.py which is used for post-commit hooks.

It would be great to refactor the trac-pre-commit-hook in order to handle all the features of post-commit-hook (envelope, commands.close, commands.refs, etc…) defined on a Trac environment.

I've written a pre-commit-hook.py which copies the code of both python files in order to refactor it later.

Attachments (1)

pre-commit-hook.py (3.8 KB ) - added by Anthony O. 13 years ago.
pre-commit-hook which takes care of configuration of post-commit hook

Download all attachments as: .zip

Change History (2)

by Anthony O., 13 years ago

Attachment: pre-commit-hook.py added

pre-commit-hook which takes care of configuration of post-commit hook

comment:1 by Christian Boos, 13 years ago

Milestone: unscheduled

Well, that would be a good idea I suppose. However the present state of the patch is a bit too rough for being included.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


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