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

Re: Error on Post Commit Hook.BAT

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 2 Feb 2011 06:25:53 -0500

On Wed, Feb 2, 2011 at 02:49, David Chapman <dcchapman_at_acm.org> wrote:
> On 2/1/2011 11:36 PM, Waseem Bokhari wrote:
> I am not using any email program But Only using my SMTP SERVER
> E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server%
> %to% %from% %subj% %auth%
> Then how would I mention this?
> You need to find a program that contacts your SMTP server from the Windows
> command line prompt and sends a message to the server.  You may have one
> already installed on your machine; if you are defining a repository for a
> group of developers you will also need to ensure that it is installed (or at
> least accessible on the search path) on every developer's machine.

It's only needed on developer machines if it's a TSVN client-side
hook, or the repository is accessed via file:///, which is a really
bad idea in a shared environment.

> My Subversion installation does not send E-mail to developers and so I do
> not know of any programs that send mail to an SMTP server from a Windows
> command line prompt.  Perhaps someone else on the list will know.  I can't
> help you further.

The best thing to do is skip using BAT files altogether. You can
completely eliminate the need for a "send email" program by using a
modern Windows scripting environment like Windows Script Host (where
you'll use the build-in mail objects) or better yet PowerShell (single
cmdlet, send-mailmessage).

BAT files are clunky, difficult to both read and write, weak &
primitive. Better alternatives have existed for a decade now, but
people still cling to them because they haven't bothered to explore
what else is out there.
Received on 2011-02-02 12:27:13 CET

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.