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

Re: Triggering email with post-commit.bat

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-05-03 17:57:58 CEST

On 5/3/07, Fred Rosenblatt <fredr5@juno.com> wrote:
> Lübbe Onken <l.onken@...> writes:
>
> >
> > Hi Andy Levy,
> >
> > You wrote:
> > > On 5/2/07, Fred Rosenblatt <fredr5@...> wrote:
> > >> After some investigation, it appears that the hook scripts must be
> > >> executed by Tortoise locally.
> > >>
> > >> I'm looking at the help info at:
> > >>
> > >>
> > > http://tortoisesvn.net/docs/nightly/TortoiseSVN_hr/tsvn-dug-se
> > > ttings.html,
> > ...
> > > Hook scripts are executed by the server, on the server. They're stored
> > > in the hooks directory inside the repository directory (the one
> > > created by svnadmin create).
> >
> > This information is correct, the hook scripts Fred was referring to are
> > client side hook scripts that are executed locally only.
> >
> > Browsing through the documentation reveals that we never mention that the
> > scripts which can be configured by TortoiseSVN are client side hook scripts.
> > (only in the index)
> >
> > I'll fix this immediately.
> >
>
> Gentlemen,
>
> Thank you so much for the responses. We in fact did set up the hook script,
> perl and email list files on the server, but couldn't see how to get "svn
> commit" to trigger (executing post-commit.bat on the command line does produce
> the desired emails).

Most likely it's a permissions or environment issue. Hook scripts are
called with a bare-minimum environment for security - so things that
you assume to be in the %PATH% may not actually be there when the
server executes the hook script. Specify full paths to any
files/executables in your post-commit.bat and see if that fixes the
problem.

> Then I saw in the Tortoise documentation what appears to be a requirement to
> execute the hook script in Tortoise, on the client side. There is a Properties
> dialog box to do this, but unfortunately we do not see "hook script" appearing
> below "Saved Data" as is shown in the documentation. What am I misunderstanding?

Client-side hooks are a feature of an upcoming release of TSVN; you're
reading the documentation for that future release. If you're running
1.4.3, those features don't exist for you.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Thu May 3 17:58:10 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.