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

Re: Clarifications using Subversion

From: Andreas Stieger <Andreas.Stieger_at_gmx.de>
Date: Tue, 12 Apr 2016 09:28:18 +0200

Hi,
 
Vijay Peddamallu wrote:
> can restrict “svn delete” command to limited set of users?

Pre-commit hook that examines the pending transactions and rejects accordingly.
http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.pre-commit.html

> If I lock source code on my name, can we apply a restriction that only I can unlock it. Otherwise, admin?
 
Pre-unlock hook that examines the unlock request and restricts as required.
http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.pre-unlock.html%c2

Note that svn's locking feature is not a write protection, but intended for serializing edits to files where individual changes cannot be merged - such as binary assets, images.

For that and the above, I have found that project policies work much better than technical restrictions you are asking for. Certainly in reasonably motivated professional environments.

Andreas
Received on 2016-04-12 09:28:33 CEST

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.