Modify ↓
Opened 16 years ago
Closed 8 years ago
#4038 closed defect (fixed)
trac-post-commit-hook have to be installed for full support
Reported by: | Owned by: | Ryan J Ollos | |
---|---|---|---|
Priority: | normal | Component: | TracSvnPoliciesPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
For full support of the implemented functionalities, this plugin needs the trac-post-commit-hook
installed in the Trac source path, under the contrib
folder.
This should be noted in the installation procedure.
If no you will obtain the following warning message: 'post-commit' hook failed with error output:
/bin/sh: /PATH/TO/TRAC/SOURCE/contrib/trac-post-commit-hook: No such file or directory
Attachments (0)
Change History (6)
comment:1 Changed 16 years ago by
comment:2 Changed 15 years ago by
Owner: | changed from Culapov Andrei to Robert Corsaro |
---|
comment:3 Changed 10 years ago by
Owner: | Robert Corsaro deleted |
---|
comment:4 Changed 8 years ago by
Description: | modified (diff) |
---|
comment:5 Changed 8 years ago by
Owner: | set to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:1 has some good ideas, however I think the plugin has some design issues that I'll describe in #4486. The dependency on trac-post-commit-hook
will be removed in the next commit. The script isn't needed, or included, in Trac 0.12 and later. In the future we might consider using trac-svn-hook.
Note: See
TracTickets for help on using
tickets.
As detailed in #5281,
TRAC_CODE_PATH
is required to show where the post-commit-hook exists. Here is a proposed procedure to be more automatic on installation (that must be checked in):svnpolicies/hooks/trac-post-commit-hook
pointing tohttp://trac.edgewall.org/browser/branches/0.11-stable/contrib/trac-post-commit-hook
setup.py
to includehooks/trac-post-commit-hook
svnpolicies/hooks/post-commit.py
(as listed in #5281) with this alternate:... and one last step, which I can't figure out, is where in the plugin to add code to copy
/svnpolicies/hooks/trac-post-commit-hook
to the Trac environment's hooks directory. For now I just manually copy the file in there.