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

Hook Script Collecting User Input?

From: Mark Voelker <mhsvoice_at_rocketmail.com>
Date: Wed, 27 Feb 2008 04:23:37 -0800 (PST)

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?
 
--Mark

      ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping

---------------------------------------------------------------------
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 14:12:19 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.