[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-25 22:27:07 CET

Rob Segal wrote:
> Has anyone actually created a post-commit hook on Windows that emails info
> 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 equivalent
> "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.

--
Arild
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 Tue Nov 25 22:33:17 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.