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

Re: Client side hook scripts [Was: Proposal for $Revision$ keyword amendment, "global" revnums, etc...]

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-10-13 03:58:46 CEST

On Tue, 2005-10-11 at 22:30 +0200, Miha Vitorovic wrote:
> I must say that, after following this discussion in its many
> incarnations, I have been finally shown the light. :-) I think that it
> would be much more useful for people to start pushing for/requesting
> client side hook scripts. That would open a much larger set of
> possibilities and would also provide an easy and cheap way of getting
> this infamous "global" revision number.

I write client side hook scripts all the time.
They just wrap the `svn` program with some local logic.

For instance to get the global revision number you can parse the output
of the servers response to a `svn info` request. But by the time you
parse that output the head revision number _could_ be bumped by another
user (aka, not atomic).

As for SVN supporting some kind of interface between the clients and the
server for client hooks. I think that's a _bad_ idea because clients
can lie to the server, become corrupted, every client may not be able to
run every hook script and clients may simply be buggy without the
implied malicious intent of the first reason.

Doesn't perforce or one of the other closed RCS' support client hooks?
All I've read about them is bad things in a large heterogeneous
computing environment.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 13 03:58:50 2005

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.