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

Re: How do I prevent users from deleting files from repository.

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2007-07-24 04:50:52 CEST

>>>>> "Ed" == Ed Mangual <mynewsbuddy@gmail.com> writes:

    Ed> ... how to write a hook to prevent users from deleting
    Ed> anything from my svn repostory.

Two things:

1) check out the "svnlook changed" command -- I'm 80% sure it'll tell
you if the pending commit contains deletions. You can return a
failure code if that's the case.

2) realize that if a user deletes something, it's gone forever -- you
can just undo the deletion. See
http://svnbook.red-bean.com/nightly/en/svn.branchmerge.commonuses.html#svn.branchmerge.commonuses.undo

-- 
Native Americans used every part of the buffalo, including
the wings.
        -- Darren New
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 24 04:52:15 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.