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
|