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

Re: Hook Script Collecting User Input?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Wed, 27 Feb 2008 09:40:42 -0500

On Wed, Feb 27, 2008 at 7:23 AM, Mark Voelker <mhsvoice_at_rocketmail.com> wrote:
> Let's assume for a moment that all the users of my repository are using file:/// URL's (as opposed to http for instance) and I want to add a start-commit hook script that will ask them to sign off on a number of reminders before their commit can proceed. Something along the lines of:
>
> Have you examined your diffs and checked for accidental changes?
> <user types "y">
> Have you made sure your comments are in line with the standard schema?
> <user types "y">
> Have you posted your diffs for review?
> <oops, forgot to do that...user types "n" and the commit is canceled>
>
> Is this possible to do since the hook script doesn't have a STDIN connected to the user's terminal?

Hook scripts are non-interactive, regardless of what protocol you use
for repository access. Sounds like you want a wrapper around the SVN
client.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-27 17:14:40 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.