You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Z W <mp...@gmail.com> on 2013/02/12 18:49:28 UTC
lock tree or branch - quick question
Hi All
We like to stop commits to a certain tree or branch.
Is there a way to do that on SVN ?
Is this an svn admin command ?
Thanks
Re: lock tree or branch - quick question
Posted by "C. Michael Pilato" <cm...@collab.net>.
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 <cm...@collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
RE: lock tree or branch - quick question
Posted by Thomas Hemmer <th...@go-engineering.de>.
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.
Best regards,
Thomas
-----Original Message-----
From: Z W [mailto:mpc8250@gmail.com]
Sent: Tuesday, February 12, 2013 6:49 PM
To: users@subversion.apache.org
Subject: lock tree or branch - quick question
Hi All
We like to stop commits to a certain tree or branch.
Is there a way to do that on SVN ?
Is this an svn admin command ?
Thanks
GO Engineering GmbH - Stolzenbergstr. 13/IV - 76532 Baden-Baden
Geschäftsführer:
Helmut Gerstner, Dipl.-Ing. (FH)
Ralf Wörner, Dipl.-Ing. (FH)
Registergericht: Mannheim HRB 201811