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

Re: Question : Hook under Windows XP

From: Norbert Unterberg <nunterberg_at_gmail.com>
Date: 2006-12-07 17:11:18 CET

2006/12/5, David de Paris17e <david_75017@yahoo.fr>:

> After the install of Subversion 1.4, I'd like to allow
> the automatic email send each time a commit is done by
> every user.

We are successfully calling mailer.py in our post-commit hook script, see below.
mailer.py config file mailer.conf can be downloaded from the
tool/hook-script folder in the subversion repository.

Norbert

---------- post-commit.cmd --------

:# POST-COMMIT HOOK
:#
:# The post-commit hook is invoked after a commit. Subversion runs
:# this hook by invoking a program (script, executable, binary, etc.)
:# named 'post-commit' (for which this file is a template) with the
:# following ordered arguments:
:#
:# [1] REPOS-PATH (the path to this repository)
:# [2] REV (the number of the revision just committed)
:#

set REPOS=%1
set REV=%2
set SVN=D:\Programme\Subversion\bin
set ROOT=D:\Repos
set python=D:\programme\Python23\python.exe

:: mailer.py commit REPOS-DIR REVISION [CONFIG-FILE]
%python% %ROOT%\mailer.py commit %REPOS% %REV% %ROOT%\mailer.conf
>>%ROOT%\test.log

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 7 17:11:49 2006

This is an archived mail posted to the Subversion Dev mailing list.

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