[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: Giulio T <giulio.troccoli_at_uk.linedata.com>
Date: Fri, 20 Mar 2009 16:29:03 +0000

>

Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851 VAT Reg No 778499447

-----Original Message-----

> From: webpost_at_tigris.org [mailto:webpost_at_tigris.org]
> Sent: 20 March 2009 10:59
> To: users_at_subversion.tigris.org
> Subject: PRE COMMIT HOOK USER NAME OF COMMIT
>
> 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

I believe the start-commit is what you're looking for. One of the parameters passed to the hook is the user name.

If I'm wrong (quite possible) then you can use the svnlook author command to get the user name. remember to use it with the -t option not -r.

Giulio

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1365657

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-03-20 18:17:36 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.