[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: Johan Appelgren <johan.appelgren_at_gmail.com>
Date: 2005-09-09 09:15:22 CEST

On 9/8/05, hwtoaster-3dc@yahoo.de <hwtoaster-3dc@yahoo.de> wrote:
> First of all: I'm a real beginner in this svn-stuff,
> so sorry for my maybe stupid question.
> 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.
> Can you help me with this ( I think the explanation in
> the svn-book about windows is a bit short for
> beginners..)
> I'm not able to cahnge the OS, because it's an
> existing server, where other apps still are running
> When I install the mailer.py later (again), I have to
> also rename the mailer.py and put the mailer.conf in
> the conf directorz, right??
> Is it enough to run the mailer just with the setting
> of t_address and smtp_hostname (the other stuff I can
> add later on)
> Thanks!!!

I think it would be easier to help you if you told us what your
post-commit.bat contains. You are aware that when the hook is run no
enviromental variables are set, as stated here
<http://subversion.tigris.org/faq.html#hook-debugging>? Also, does the
user subversion runs as on your server have write permissions where
you are trying to write the file?

When it comes to mailer.py you have to call it using a post-commit.bat
hook since subversion does not recognize .py files as executable on
windows. Only .exe, .bat and .cmd I think.


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