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

post-commit hook fails !!

From: Himanshu Raina <raina_himanshu_at_yahoo.com>
Date: Fri, 26 Jun 2009 12:51:52 +0530 (IST)

Hi,

I have hook script which sends out mail everytime a commit is done to the repo. I have multiple sub-repositories / trunks under the head Repo. The structure is something like this
                |-------- nLogin
rr_code ---
                | -------- rLogin

While committing the code I get the following error. The post commit hook is given below

#!/bin/sh

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

DIR=`/usr/local/subversion-1.5/bin/svnlook dirs-changed $REPOS -r $REV | cut -d"/" -f1 | uniq`

if [ "$DIR" == "nLogin" ]

then

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

else

if [ "$DIR" == "rLogin" ]

then

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

else

echo "No changes done"

fi
fi
==================================================================
Working copy

[root_at_localhost ReleaseNew]# svn commit -m "done"
Deleting       ReleaseNew/himanshu

Committed revision 11150.

Warning: Failed to start '/usr/local/svn/rr_code/hooks/post-commit' hook
=================================================================

Regards
Himanshu Raina

      ICC World Twenty20 England &#39;09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2365609

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-26 09:22:57 CEST

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