subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C. Michael Pilato" <cmpil...@collab.net>
Subject Re: lock tree or branch - quick question
Date Wed, 13 Feb 2013 15:25:21 GMT
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@collab.net>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development


Mime
View raw message