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

Re: Pre/Post Commit script

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-10-02 17:18:21 CEST

On Oct 2, 2006, at 08:13, Toni Brkic wrote:

> I would like to create a wrapper script around svn that
> first asks who revieved the commit.
> The script would then proceed with the normal check in
> but add the reviewer to the log message.
>
> So basically I would like to edit the text that comes
> up with the editor when you do a ci.
>
> I cant see how this would be possible with a commit hook.
> Does anybody have any pointer on how to do it?

You're right -- it cannot be done with a hook. The hooks run on the
server, and the commit happens on the client.

You will need to write a wrapper around the svn command, or else
investigate the EDITOR or SVN_EDITOR environment variables, for
example as described here:

http://svn.haxx.se/users/archive-2005-04/1157.shtml

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 2 17:19:10 2006

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.