[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: Rob Segal <rsegal_at_3dna.net>
Date: 2003-11-26 20:35:39 CET

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?

-----Original Message-----
From: Arild Fines [mailto:arild.fines@broadpark.no]
Sent: November 25, 2003 1:27 PM
To: Rob Segal; users@subversion.tigris.org
Subject: RE: Hook executables in Windows

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 Wed Nov 26 17:43:49 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.