#6041 closed defect (fixed)
trac-post-commit-hook doen't work (nor error message)
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | low | Milestone: | 0.12-multirepos |
| Component: | general | Version: | 0.10.4 |
| Severity: | minor | Keywords: | multirepos documentation |
| Cc: | Branch: | ||
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
Hello there.
I just updated my Ubuntu machine from Edgy Eft to Feisty Fawn what updated Python from 2.4 to 2.5. Now I have troubles with the hooks.
With Python2.5 the post-commit-hook subversion returns the following error: {{ MERGE von '/svn/xyz': 200 OK (https://example.com) }}
Using Python2.4, subversion doesn't return an error, but the referenced ticket is untouched.
When calling the trac-post-commit-hook manually, there is no error at all, no matter if using python2.4 or 2.5
Attachments (0)
Change History (6)
comment:1 by , 18 years ago
comment:2 by , 18 years ago
| Keywords: | documentation added |
|---|---|
| Milestone: | → 0.12 |
| Priority: | high → low |
| Severity: | normal → minor |
The svn hooks are run without any environment variable set, in contrast with running them from the command-line. That's a frequent cause of problems.
Keeping open for 0.12, so that we can eventually improve the documentation for those scripts.
comment:3 by , 18 years ago
I had the same problem (doen't work (nor error message)) with 0.10 when trying to test on the command line.
Found my problem
Version 0.10 and up (maybe before that too) has deprecate all options except the -p and -r. If you use the other options, they are ignored.
So you have to test on the command line with a revision number which exist and has the correct log.
comment:4 by , 17 years ago
| Milestone: | 0.13 → 0.12 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
The new hook (for now in source:sandbox/multirepos/contrib/trac-svn-hook) is better documented and warns against such issues.
comment:5 by , 16 years ago
| Keywords: | multirepos added |
|---|---|
| Resolution: | → fixed |
| Status: | assigned → closed |
Still have the trac-svn-hook.cmd to finish, but that's tracked in #6370.
comment:6 by , 16 years ago
| Milestone: | 0.12 → 0.12-multirepos |
|---|



I have a similar problem. When I call the post-commit-hook manually (from teh command line) it works fine, but when a simple commit occurs nothing happens. What could be the reason for this?