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

Re: Restriction on deletion of files from Subversion

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-05-30 14:47:32 CEST

On 5/29/07, Thomas Harold <tgh@tgharold.com> wrote:
> maitrayee.bhowmick@wipro.com wrote:
> > I am currently using Tortoise SVN 1.3.2.I want to restrict the users
> > from deleting files from the Subversion so that only Admin can delete
> > the files. I have found that we can do it by modifying pre-commit hook
> > script like svnperms.py for fine-grained control of things like this.
>
> I see that Hari answered you.
>
> Can I ask a related question? What process need does disallowing the
> deletion of files from a SVN repository serve? I'm always curious as to
> how other folks are working with SVN and restricting deletes isn't
> something I had needed yet.

I have some users who haven't quite mastered the whole concept of
Subversion yet. They frequently deleted files, then added the "next
version" of that same file (until I finally talked to them about it
and explained that they were only causing themselves trouble and doing
extra work to boot). Usually while working with someone who didn't
have SVN access. Basically, it went like this:

Check out WC
Email file from WC to non-SVN user
Non-SVN user makes edits & emails the document back
User svn rms file from WC, commits.
User detaches file from email, places in WC
User adds, commits.

If I had something in place which prevented them from deleting files,
then their file history wouldn't be broken.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 30 14:47:57 2007

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.