[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: Prasad (普拉萨德) <prasad.online_at_gmail.com>
Date: Mon, 24 Mar 2008 14:21:14 +0530

I tried all the steps you suggested but still having the same problem.
Commits are happning locally but not remotely.

for local testing svn checkout is by using following command
svn co file:///opt/svn/test/trunk/test-commit

and checkin using following (working fine)

for remote test i am using following command for checkout

svn co svn+ssh:xyz_at_localhost/opt/svn/test/trunk/test-commit

and following command for checkout (Working only if I delete pre-commit file
from hooks)

prasad_at_server ~/src $ svn ci -m "Bug:14223 test"
Password:
Sending prasad.test
Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:

prasad_at_server ~/src $

Which means whenever i put svn+ssh its giving problem else its working fine.
So what need to fix so that it works with svn+ssh also

On Fri, Mar 21, 2008 at 9:56 AM, Mark Reibert <svn_at_reibert.com> wrote:

> 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
> number.
>
> > 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:
>
> #!/bin/sh
> 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
> integration.
>
> --
> ----------------------
> Mark S. Reibert, Ph.D.
> svn_at_reibert.com
> ----------------------
>
>

-- 
Prasad S. Wani
Received on 2008-03-24 10:11:36 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.