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

Re: SVN pre-commit hook failed

From: Mark Reibert <svn_at_reibert.com>
Date: Thu, 20 Mar 2008 21:26:03 -0700

On Thu, 2008-03-20 at 18:04 +0530, Prasad (鏅媺钀ㄥ痉) wrote:
> please find the attachment of my pre-commit and pre-commit.tmpl script

Does your repo path contain spaces? You should always quote paths that
contain variable expansions in case the resulting path contains spaces.
Your Scmbug activity_verify command would then be:

/usr/bin/perl -I "${REPOS}/hooks/lib/scmbug" \
     "${REPOS}/hooks/bin/scmbug_activity.pl" \
     "${REPOS}/hooks/etc/scmbug/glue.conf" \
     activity_verify "${REPOS}" "${TXN}" >&2

(I do not know if transaction names can contain spaces, but it does not
hurt to quote that as well.)

It is also possible your Scmbug integration is failing for valid
reasons. Perhaps it cannot verify the activity due to problems
contacting the change request tool (Bugzilla, I presume). Perhaps your
commit log message is not properly formatted for Scmbug to grab the bug

> perms for hook directory i set them to 777 but still nothing works.

But what about the hook itself (pre-commit) - is it executable?

Try the following simple pre-commit hook:

touch /tmp/pre-commit-test.$$
exit 0

If you can commit, and you get the file in /tmp, then you know the
mechanics are correct and you likely have problems with your Scmbug

Mark S. Reibert, Ph.D.
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-21 05:26:30 CET

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.