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

Re: pre-commit.pl

From: David Weintraub <qazwart_at_gmail.com>
Date: Tue, 16 Dec 2008 11:47:00 -0500

Is this a server side hook?

Try this:

#! C:/bin/perl

print STDERR "Hello World\n";
exit 2;

That will display your message back to the client. Of course, it will
also fail the commit too.

Server side hooks print nothing to the client unless there's a failure
and the commit transaction is rejected. Otherwise, it returns nothing.

If you want to send information back to the client, you have to use
email or even IMing the user. That's the best you're going to do.

On Tue, Dec 16, 2008 at 5:12 AM, Ilan Yaniv <Ilan.Yaniv_at_timetoknow.org> wrote:
> Hi
>
> I wrote a pre-commit.pl simple script that I want to be executed before I am
> commiting a file.
>
> It is simple –
>
> #!C:\Perl\bin
>
> print STDERR "Hello World\n";
>
> or…
>
> #!C:\Perl\bin
>
> print "Hello World\n";
>
> But, when I execute the script I am getting no message when I am doing it
> from the command line.
>
> Please help.
>
> Ilan Yaniv
>
> Configuration Management
>
> Phone: 03-7534333 ext. 5873
>
> Ilan.Yaniv_at_timetoknow.org

-- 
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=985092
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-16 17:48:08 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.