The post commit hook
wouldn't work for me, and couldn't find a solution on-line, so here's
my submission for the FAQ - as it's currently read-only.
If the
trac-post-commit-hook script does not appear to be working, for some extra clues
try running it from the command-line using the account normally used to run it
and without an environment (as it's normally executed).
Change to the
relevant user and execute the following from the subversion repository hooks
directory:
env - ./post-commit
/svn/test 7
This will also check
your subversion hook is calling the trac-post-commit-hook
If the results give
you something like this: "ImportError: no module named trac.env",
then it's
likely python has not been found properly by line 1 of
trac-post-commit-hook, so change line 1 to suit your system, such
as:
#!/usr/local/bin/python
Thanks,
Maurice
_______________________________________________ Trac mailing list [email protected] http://lists.edgewall.com/mailman/listinfo/trac
