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)
Change History (2)
by , 13 years ago
Attachment: | pre-commit-hook.py added |
---|
comment:1 by , 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.
pre-commit-hook which takes care of configuration of post-commit hook