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

Re: How to get an hook script (especiallly the mailer.py) working under windows?

From: Jonathan White <jonathan.white_at_oeaw.ac.at>
Date: 2005-09-09 16:32:45 CEST

hwtoaster-3dc@yahoo.de wrote:

>I have an repository, where I put a file called
>post-commit.bat in the hook-directory, which has the
>function of just creation a .txt-file with a static
>text for testing.
>When I do a commit, it should create the txt, but it
>doesn't, maybe it's a problem with the environmental
>settings, but I don't know what to change to get it
>work.
>
>
I was having similar problems - I couldn't get the hook script to be
called until I read Peter McNabs mail to the list 'Hook scripts for
win32'. He adds the Subversion bin folder to the path and everything
works like a dream:

rem Post-Commit Hook script for Subversion
@echo off
rem Add path to Subversion executable
set path=%path%;c:\Program Files\Subversion\bin
rem Dump revision
set destDir=c:\dumps\revisions
mkdir %destDir%
svnadmin dump --incremental --deltas --revision %2 %1 > %destDir%\r%2
exit 0

Hope that helps

Jonnie

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 9 16:34:58 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.