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

Re: Interactive pre-commit hook script?

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-06 01:10:54 CEST

On May 5, 2006, at 19:10, Gloria wrote:

> I was hoping to prompt for and read developer responses directly in
> the pre-commit script, but this does not seem to work, although
> SVNLOOK seems to be able to prompt and take interative user input.
>
> My question is, why can't the pre-commit script itself run
> interactively? To get interactive responses, do I need to take
> control of STDIN, STDOUT, STDERR?
>
> I was expecting standard shell script behavior from pre-commit, but
> this is not what I am seeing.

Hooks are not interactive. start-* and pre-* hooks can send an error
message and a status code back to the client on failure. AFAIK post-*
hooks cannot interact with the client at all.

The only relevant issue I can find:

http://subversion.tigris.org/issues/show_bug.cgi?id=443

That's not about interactivity of hooks, though; it's just about
allowing all hooks to report errors or status messages back to the
client. It's been open for close to five years, but at least it's
being worked on periodically.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 7 17:09:19 2006

This is an archived mail posted to the Subversion Dev mailing list.