[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: mark <extrapic_at_extrapic.com>
Date: Wed, 09 Jul 2008 08:49:26 +0100

Well thats very clear, even if not what I wanted to hear.
Thanks guys.


"extrapic" == extrapic  <extrapic@extrapic.com> writes:
            

 extrapic> .... I want to help our
 extrapic> developers as much as possible, by rejecting the checkin
 extrapic> before the editor comes up so far as I am able, to spare
 extrapic> him/her from that effort and then be confronted with the
 extrapic> fact that they are commiting to the wrong branch or need
 extrapic> authorisation privileges. I want that to never happen! And
 extrapic> yes, I know you can re-use the same message, but often
 extrapic> people do not know or do this.

But svn tells you explicitly.  If a checkin fails due to a pre-commit
script rejection, the message is saved and svn says where it saved it.

So all your users have to know is "svn ci -F <savedfile> ..."  Not
that hard, it seems to me.

     paul


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


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@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on 2008-07-09 18:20:27 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.