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

Re: Precommit hook absent from subversion

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Tue, 08 Jul 2008 13:52:08 -0400

ExtraPic wrote:
> I want the ability to abort a svn checkin before the user is asked
> for a commit message, based on information available.

> At the moment it seems to me that you cannot do this in subversion at
> all. Its a simple thing to ask for. Or did I miss something?

You are correct - you cannot do this in Subversion at all. In fact, the
architecture specifically prevents this sort of hook from being
implemented, because the generation of a commit message is a client-side
operation, and happens before the server is even contacted. Only when
the client has a complete transaction (data to commit plus log message)
does it connect to the server. Only then can the pre-commit hook fire
(which can be used to validate the log message for example).

I don't think this is going to be something that will change...

Sorry

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-08 19:52:51 CEST

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.