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

Re: post-commit hook fails !!

From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Sat, 27 Jun 2009 19:33:34 +0530 (IST)

The script was working fine all this while. It has just started behaving this way. Also, while using mailer.py I get the following error

/usr/bin/python /usr/local/src/subversion-1.5.0/tools/hook-scripts/mailer/mailer.py

"You need version 1.5.0 or better of the Subversion Python bindings."

How do I get rid of this. I installed pysvn1.6.0 as per instructions given in INSTALL.html. What am I missing here ?

Himanshu Raina

--- On Sat, 27/6/09, Ryan Schmidt <subversion-2009b_at_ryandesign.com> wrote:

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Subject: Re: post-commit hook fails !!
To: "Hilco Wijbenga" <hilco.wijbenga_at_gmail.com>
Cc: "Himanshu Raina" <raina_himanshu_at_yahoo.com>, users_at_subversion.tigris.org
Date: Saturday, 27 June, 2009, 1:33 AM

On Jun 26, 2009, at 11:34, Hilco Wijbenga wrote:

> 2009/6/26 Himanshu Raina <raina_himanshu_at_yahoo.com>:
>> DIR=`/usr/local/subversion-1.5/bin/svnlook dirs-changed $REPOS -r 
>> $REV | cut
>> -d"/" -f1 | uniq`
> "cut" and "uniq" probably can't be found. Use their full path as you
> do for "svnlook".

True, but I'm also surprised at the error "Warning: Failed to start '/
usr/local/svn/rr_code/hooks/post-commit' hook" which I don't remember 
seeing before. It's as if it hasn't even begun to run the hook. Make 
sure the hook script has 755 permissions or at least is executable by 
the user who's serving the repository.

Also, on this line you showed:

On Jun 26, 2009, at 02:21, Himanshu Raina wrote:

> usr/bin/perl /usr/local/svn/rr_code/hooks/commit-email.pl "$REPOS" 
> "$REV" -s "rLogin" himanshu.raina_at_yahoo.com

you appear to be missing the initial "/" on "/usr/bin/perl". Consider 
defining more variables for the path to perl, the path to the commit-
email.pl script, and the path to svnlook so that if you ever need to 
change the paths they're all in one place at the top of the script.

And consider using mailer.py instead; commit-email.pl is deprecated.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].

      Love Cricket? Check out live scores, photos, video highlights and more. Click here http://cricket.yahoo.com


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-27 16:04:43 CEST

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