Discussions  >  CollabNet Subversion Admins  >  Couple suggestions for documenting post-commit hook

Back to topic list

Couple suggestions for documenting post-commit hook

Author co (OCN Member)
Full name Chris Olson
Date 2011-05-27 17:24:29 PDT
Message I spent the good part of a day getting the post-commit hook working. Given..I'm not a UNIX genius...but documentation could have been better. I'm on solaris 10.

Issues I had:

1) Syntax error in mailer.py - the line that declares "DifflibDiffContent():". Taking out the parentheses fixed it. Why isn't this fixed in this wiki?
https://ctf.open.col​lab.net/sf/wiki/do/v​iewPage/projects.svn​edge/wiki/CommitMail​erOnSolaris

2) PYTHONPATH - it really should be CLEARLY spelled out somewhere that PYTHONPATH needs to be defined. I know it says in the post-commit example, but it doesn't really say what it should point to. PYTHONPATH shouldn't point to the python executable, it points to the svn-python bindings..using the symlink at lib/svn-python.

3)Make sure mailer.py and the post-commit hook have executable permissions.

Hope this helps somebody..

« Previous message in topic | 1 of 2 | Next message in topic »

Messages

Show all messages in topic

Couple suggestions for documenting post-commit hook co (OCN Member) Chris Olson 2011-05-27 17:24:29 PDT
     RE: Couple suggestions for documenting post-commit hook co (OCN Member) Chris Olson 2011-05-27 17:25:52 PDT
Messages per page: