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

Re: post-commit update hook locking wc

From: chris feldmann <cfeldmann_at_gmail.com>
Date: 2007-06-30 00:00:25 CEST

On 6/29/07, Karl Fogel <kfogel@red-bean.com> wrote:
> "chris feldmann" <cfeldmann@gmail.com> writes:
> It fails silently? (It's 'svn' itself leaving the lock, by the way,
> not your hook script per se.)
>
> So there's no error output at all? Are you positive that when you
> attempt to reproduce this by hand, your UID and environment are
> exactly the same as that under which the hook executes? See
>
> http://subversion.tigris.org/faq.html#hook-debugging
>
> -Karl
>
> --
> Subversion support & consulting <> http://producingoss.com/consulting.html
>

Gah, version! I knew I was forgetting something.
Subversion command-line client, version 1.3.2.

The hook-debug tips produced interesting results:
so comment out the call to the binary in the hook and commit a change
and run the binary and it updates properly.

when I run it with

$env - hookbin

It segfaults. Trying some more stuff but I wanted to add my version to
this thread.

the source of the hook looks like this:

#include </usr/include/stdlib.h>
#include </usr/include/unistd.h>
int main( void )
{
        execl( "/usr/bin/svn", "svn", "update", "/var/www/util/",
(const char*) NULL);
        return(EXIT_FAILURE);
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jun 30 00:00:40 2007

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.