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

Re: Hook scripts

From: Moisei <moisei_at_gmail.com>
Date: 2005-05-28 14:46:23 CEST

> under windows you have to use the post-commit.bat or post-commit.bat
Sorry, I ment either post-commit.bat or post-commit.exe

2005/5/28, Moisei <moisei@gmail.com>:
> under windows you have to use the post-commit.bat or post-commit.bat
> just run your post-commit.rb from the batch.
>
> 2005/5/28, John Szakmeister <john@szakmeister.net>:
> > On Friday 27 May 2005 20:40, Kyle Heon wrote:
> > > Thanks for the information.
> > >
> > > I'm just playing around with a simple hook script but it doesn't appear
> > > to be running when I do a commit. The file is named post-commit.rb.
> > >
> > > The commit works and all but the expected output (a log file, for
> > > starters) is not being created.
> > >
> > > Is there anywhere that Subversion logs errors generated during the
> > > execution of a hook script?
> >
> > If you're using http:// access, something might be recorded in the apache
> > error log.
> >
> > A couple of things to keep in mind when writing your post-commit hook
> > script. First, the directory that the hook script is executed from is
> > not necessarily the same directory that the script is located in. IOW,
> > if you need to output something to a particular directory, then either
> > put in an absolute path, or make sure to change to the appropriate
> > directory before generating your output. Secondly, the script is
> > executed in an empty environment. If your script counts on touching
> > other tools, then you may need to set all the appropriate environment
> > variables for it to work correctly. Finally, don't forget that the hook
> > script is run as the same user as the server process. So be sure
> > whatever your touching has the permissions set to allow for the desired
> > access.
> >
> > HTH.
> >
> > -John
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
> --
> Best Regards,
> Moisei
>

-- 
Best Regards,
Moisei
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat May 28 14:48:01 2005

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.