[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: Gloria Willadsen <strangest_at_comcast.net>
Date: 2006-05-06 15:35:19 CEST

Understood. I will alias the client-side command to run my script on the
client end before invoking subversion.
Thank you for your quick responses.
Gloria

> 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 15:37:10 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.