[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: Marcus Rueckert <darix_at_web.de>
Date: 2006-05-06 01:24:26 CEST

On 2006-05-05 13:10:17 -0400, Gloria wrote:
> I am currently implementing some complex code checking conditions
> specific to our application.
>
> 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.

now imagine the script is run by a remote server.
e.g. with svn+ssh stdin and stdout are already taken for the actual
transport. stderr is send to the client. but there is no channel left
for pushing the response through to the script.

interactive hooks scripts is nothing you really want. imho.

just my 2 cents,

darix

-- 
           openSUSE - SUSE Linux is my linux
               openSUSE is good for you
                   www.opensuse.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 6 01:25:06 2006

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.