[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: Ben Collins-Sussman <sussman_at_red-bean.com>
Date: 2006-05-06 03:17:18 CEST

On 5/5/06, Gloria <strangest@comcast.net> wrote:

> My question is, why can't the pre-commit script itself run
> interactively?

Because the script runs on the server, and there's a network of
unknown distance and latency between the server and the client. To
make things even more complex, there are at 3 different network
protocol implementations (the whole network layer is abstracted.)
What you're asking for would be really, really hard to implement.

The goal of the pre-commit hook is to simply accept or reject a
commit. If you want to have a whole interactive thing, then have your
developers run the script on their client. (The pre-commit hook can
say somethng like, "commit rejected: run the interactive script to
fix your code.")

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat May 6 03:17:41 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.