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

Re: PRE COMMIT HOOK USER NAME OF COMMIT

From: David Weintraub <qazwart_at_gmail.com>
Date: Fri, 20 Mar 2009 12:59:48 -0400

Use the svnlook command. There's a "svnlook author" which will tell
you the author of a particular change via a particular transaction
number (you get the transaction number when the hook is called) or the
revision number. Here's a shell script example below:

    author=`/usr/bin/svnlook author -t $TRANS_NO $SVN_REPOS`

On Fri, Mar 20, 2009 at 6:59 AM, <webpost_at_tigris.org> wrote:
> Hi all,
> is there any way to find out the user name in Pre commit hook i.e which user had issued the commit command. i want to know the user name from which svn commit is fired in Pre-commit hook, so that i can pass/hault the commit operation.
>
> Thanks in advance
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1363650
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
>

-- 
--
David Weintraub
qazwart_at_gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1365893
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-20 18:01:34 CET

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.