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

Can the pre-commit hook sent a message to the SubVersion client, if it allows a commit?

From: René Vestergaard <rve_at_techno-matic.dk>
Date: 2005-10-31 08:32:40 CET

Subject:
Can the pre-commit-hook sent a message to the SubVersion client,
if it allows a commit?

It can sent a message, when I write in the STDERR string
(done in a Perl-file) and return error ("exit 1")
from the pre-commit.cmd file
(which by the way has executed the Perl-file).

A message don't show up, if I return ok ("exit 0").

How can a message come through, if i want to allow a commit?

Info.:
------
We use the OS'es WindowsServer2003 and WindowsXP.

I have installed "svn-1.2.3-setup.exe" on the server (WindowsServer2003).

Some clients use the GUI "TortoiseSVN-1.2.5.4719-svn-1.2.3.msi" and
others use "svn-1.2.3-setup.exe" from a console window.

Email that I send to users@tortoisesvn.tigris.org earlier about this
subject:
----------------------------------------------------------------------------
-

> -----Oprindelig meddelelse-----
> Fra: Stefan Küng [mailto:tortoisesvn@gmail.com]
> Sendt: 28. oktober 2005 19:26
> Til: users@tortoisesvn.tigris.org
> Emne: Re: Can the pre-commit hook sent a message to TortoiseSVN, if it
> allows a commit?
>
>

> Rene Vestergaard wrote:
> > Subject:
> > Can the pre-commit-hook sent a message to TortoiseSVN,
> > if it allows a commit?
> >
> > It can sent a message, when I write in the STDERR string
> > (done in a Perl-file) and return error ("exit 1")
> > from the pre-commit.cmd file
> > (which by the way has executed the Perl-file).
> >
> > A message don't show up, if I return ok ("exit 0").
> >
> > How can a message come through, if i want to allow a commit?
>
> Why do you want to send a message if the commit is ok? Just to tell
> users "ok, everything went ok"? That's not a good idea! Think about it:
> after the third or fourth commit, your users won't even read those
> messages anymore, and then, if such a message really would tell them
> about something important, they would ignore those too!
>
> If you really want this 'feature', you'd have to ask on the Subversion
> mailing list...
>
I do just that :)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 31 08:34:32 2005

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.