Python – Subversion post-commit hook

pythonsvnsvn-hooksunix

I have created a subversion post-commit hook to send out an email everytime a commit is made.Im calling a python script from the file post-commit in /var/svn/repos/hooks .

REPOS="$1"
REV="$2"

~/svnnotify.py $REV

But the problem is that the svn commit command is taking a longer time to terminate as it waits for the python script to terminate first . Is there any way around this ?

Thank You

Best Answer

Try adding an ampersand (&) after the line that calls your script to put it in the background and return immediately.

Related Topic