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

Re: flag to disable hook scripts

From: Renaud Waldura <renaud+subversion_at_waldura.com>
Date: 2006-02-03 19:33:11 CET

> We currently update a working copy in our post-commit hook, and this is
> quite a bad idea. :-)

Ryan, could you elaborate a bit? I'm about to do the same thing. What else
should be done instead?

A word about our setup: Java developers compile/run/test locally, then
commit to the repository (classic programming model). But our HTML
developers (who outnumber Java developers 3 times over) don't run an app
server locally. They check files out, edit them, and commit them to the
staging server to see their changes, where an appserver runs.

I was therefore writing a post-commit hook to update a WC that is read by
the appserver, so that HTML developers see their changes right away, as
expected. They work with one finger on the F5 (refresh) key.

Comments? Anyone else in this situation? Thanks.

----- Original Message -----
From: "Ryan Schmidt" <subversion-2006Q1@ryandesign.com>
To: "Renaud Waldura" <renaud+subversion@waldura.com>
Cc: "Alessandro Ferrucci" <aferrucci@tresys.com>;
<users@subversion.tigris.org>
Sent: Tuesday, January 31, 2006 10:35 AM
Subject: Re: flag to disable hook scripts

> On Jan 31, 2006, at 19:09, Renaud Waldura wrote:
>
>> I don't know whether the post-commit hook is synchronous, but it
>> wouldn't surprise me if it were. Depending how much documentation you
>> have to generate, it could take a while... therefore blocking your
>> commit.
>
> The post-commit hook is synchronous; the Subversion client does not give
> control back to the user until the post-commit hook has run, and any
> other developer trying to commit at the same time will have to wait.
> Doing any kind of lengthy operation in a post-commit hook, where
> "lengthy" is probably anything more than a few seconds, therefore becomes
> a great annoyance to the developers. We currently update a working copy
> in our post-commit hook, and this is quite a bad idea. :-)
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 3 19:45:40 2006

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