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

Re: post-commit setting reply-to properly (SOLVED, THANKS!)

From: Steve Iribarne (GMail) <netstv_at_gmail.com>
Date: Thu, 11 Jun 2009 07:46:01 -0700

On Thu, Jun 11, 2009 at 7:29 AM, Steve Iribarne (GMail)<netstv_at_gmail.com> wrote:
>>
>> The post-commit is in the hooks directory of your repository. Its second parameter is the revision number of the commit. Use 'svnlook author' to get the name of whoever did the commit.
>>
>>

Giulio,

Thanks for the info. That's exactly what I was looking for. So for
completeness, here is what I did:
This is a snip from my post-commit script located in the
/path/to/repo/hooks directory

REPOS="$1"
REV="$2"
BIN_DIR=/opt/CollabNet_Subversion/bin/
HOOK_HOME=/opt/CollabNet_Subversion/tools/
AUTHOR=`${BIN_DIR}svnlook author -r "$REV" "$REPOS" `

Now AUTHOR is set to the person who did the commit.

-stv

-- 
/*
 * Steve Iribarne
 * Software Engineer
 * (aka Grunt)
 */
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2361313
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-06-11 16:54:17 CEST

This is an archived mail posted to the Subversion Users mailing list.