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

Re: lock tree or branch - quick question

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Wed, 13 Feb 2013 10:25:21 -0500

On 02/13/2013 03:04 AM, Thomas Hemmer wrote:
> Have a look at
> http://svnbook.red-bean.com/en/1.7/svn.serverconfig.pathbasedauthz.html.
>
> If you are in need of a conditional commit access control mechanism, you
> should consider using a start-commit hook - see
> http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.start-commit.html for
> details.

Those are some good doc pointers, but be aware that the start-commit hook
lacks the context to perform path-based conditional commit access. It's not
until the pre-commit hook phase that the server knows which paths were
modified as part of the commit. So, yes, you can do this conditionally from
hooks, but use pre-commit rather than start-commit to do so.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

Received on 2013-02-13 16:25:58 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.