[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Problem with python + hook

From: Robert Dailey <rcdailey_at_gmail.com>
Date: Sun, 24 Aug 2008 16:33:25 -0500

I'm trying to create a post-commit hook using python, but it isn't
working. I can't tell where it is failing, either, as I"m not sure if
any logging is taking place somewhere. Can someone tell me if there
are any error logs somewhere I can look at? Also, is there anything
obviously wrong with my script? Thanks. The filename is "post-commit",
by the way.

#!/usr/bin/python

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

#commit-email.pl "$REPOS" "$REV" commit-watchers_at_example.org
#log-commit.py --repository "$REPOS" --revision "$REV"

#svn update --non-interactive /srv/http/website
#chown -R :svn_group /srv/http
#chmod -R 774 /srv/http/website

import sys
from subprocess import call

REPOS = sys.argv[1]
REV = sys.argv[2]

print "This is a test"

call( "svn", "update", "--non-interactive", "/srv/http/website" )

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-08-24 23:33:46 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.