You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Toni Brkic <to...@switchcore.com> on 2006/10/02 13:13:58 UTC

Pre/Post Commit script

Hi,

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?

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

Re: Pre/Post Commit script

Posted by Ryan Schmidt <su...@ryandesign.com>.
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