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

Re: Triggering post-commit Hook?

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-05-10 02:55:45 CEST

On 5/8/07, Fred Rosenblatt <fRosenblatt@authenticlick.net> wrote:
>
> I have a post commit.bat file in XP that calls postt-commit.pl to send an email on commit. All the paths are fully qualified, and running the post commit.bat from the command line in fact works to send the email. However, no email is sent when an "svn commit" command is executed.
>
>
>
> My question is, what exactly is it that causes "svn commit" to execute the hook script? Is there an additional command or option hat is required, or merely the existence of post commit.bat in a particular directory, or ?

It's the existence of a properly-named file in the hooks directory. If
there's a file named post-commit which is executable (so in Windows it
would need to be post-commit.bat, .exe or .cmd), the libraries will
call it when the post-commit trigger fires.

If you're running an actual Subversion server (svnserve or Apache),
svn commit doesn't trigger this at all, it's purely controlled on the
server. If you're using file:///, then I guess you could say that
svn.exe is triggering it, but it's the same libraries that the server
process would use to do it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 10 02:56:07 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.