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

Re: Avoid Deletion of File in Subversion!

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-04-12 00:04:58 CEST

On 4/10/07, prasad.tengali@wipro.com <prasad.tengali@wipro.com> wrote:
> Hi All,
> I have been using Subversion for over 6 months now and of late I am pondering over one question:
> "Is it possible to restrict a user to delete a file in Subversion".
> Kindly let me know if anyone of you has a way out here.

Out of the box, no. A delete is the same as a write, so if the user
still needs write permission, they can delete.

A pre-commit hook script like svnperms.py allows more fine-grained
control of things like this.

But remember, even if someone does delete a file, it's not really
gone. It can be recovered from the repository - it's just no longer
visible at the HEAD revision.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 12 00:05:27 2007

This is an archived mail posted to the Subversion Users mailing list.