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

Re: Passsing output of hook-script to client

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-04-05 09:37:05 CEST

On Tue, 5 Apr 2005, Brandstädter Reinhard wrote:

> I'm using a pre-commit script to enforce commit messages.
> Now many new clients/developers complain that if they commit without an message they get an error dialogue (from tortoise) without an error message ("pre-commit failed with output: <no message>").
> Is it possible to pass an error message from the pre-commit script to the client so that it is displayed in the dialogue? How?
Outputting to standard error should work. I haven't tried it with TSVN,

Note that there is a deadlock bug if you output more than a few kilobytes
(system dependent) to stderr.

echo Some message >&2
in your hook script. (The syntax depends on your shell.) I tried that in
the command prompt in Win2k.


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Apr 5 09:34:23 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.