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

RE: Hook executables in Windows

From: Arild Fines <arild.fines_at_broadpark.no>
Date: 2003-11-26 18:47:06 CET

Rob Segal wrote:
> Thanks for the suggestions all. Your python script works for me Arild but
> not when I commit stuff, only when I run it in a command prompt. Any
> thoughts on this?

What does your post-commit.bat look like? You will most likely have to give
a full path to the script, since I have no idea what the cwd for a
post-commit hook is. Also make sure that the user account your server
process(svnserve or httpd) runs under has Python in it's %PATH%.

> Rob Segal wrote:
>> Has anyone actually created a post-commit hook on Windows that emails
>> about the repository (using the svnlook executable) to a list of email
>> addresses? If so would you be willing to share your solution?
> I have a quick-and-dirty Python script that does it for me:
> http://sourcepost.sytes.net/sourceview.aspx?source_id=8700
> It is run from post-commit.bat as 'mail.py %1 %2 mailfile "repos title"'
>> A few of the problems I'm having trouble solving is there is no
>> "sendmail" program on Windows like Unix has.
>> The second problem is if you
>> run svnlook from an executable how do you capture the output from that
>> command to include as your email message text?
> These are both handled by Python libraries.

AnkhSVN: http://ankhsvn.tigris.org
Blog: http://ankhsvn.com/blog
RSS: http://ankhsvn.com/blog/Rss.aspx
King Crimson lives in different bodies at different times and the
particular form which the group takes changes. When music appears,
which only King Crimson can play then, sooner or later, King Crimson
appears to play the music
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Nov 26 18:47:38 2003

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.