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

RE: RE: controlling delete

From: Trevor Spackman <tspackma_at_myriad.com>
Date: 2007-07-10 19:16:21 CEST

This is a snippet from our pre-commit hook that will prevent a user from
modifying a tag - they can only be added or deleted:


   if [ -n "`$SVNLOOK changed -t "$2" "$1" | grep "^[^AD].*/tags/"`" ] ;

      echo "Tags may be added/deleted, but not modified" >&2

      exit 1





From: John.Salinardo@shell.com [mailto:John.Salinardo@shell.com]
Sent: Tuesday, July 10, 2007 11:08 AM
To: Trevor Spackman
Subject: RE: RE: controlling delete




An example would just be terrific. Thanks.




-----Original Message-----
From: Trevor Spackman [mailto:tspackma@myriad.com]
Sent: Tuesday, July 10, 2007 12:00 PM
To: Salinardo, John J STGP-STT/2; users@subversion.tigris.org
Cc: Trevor Spackman
Subject: RE: controlling delete

You can achieve this by adding a pre-commit hook, and disallowing
deletes there. It will return an error message to the user that you


If you'd like an example, I can create one...







From: John.Salinardo@shell.com [mailto:John.Salinardo@shell.com]
Sent: Tuesday, July 10, 2007 10:53 AM
To: users@subversion.tigris.org
Subject: controlling delete


Is there a command for controlling SVN delete. We would like to only
give specific users delete privileges and not allow others to have it.



John Salinardo
IT Development
Shell Trading Gas & Power
909 Fannin St., Houston, TX 77010, USA

Tel: +1-713-230-3047 000 Other Tel: 832-265-5099
Email: john.salinardo@shell.com
Internet: http://www.shell.com
Received on Tue Jul 10 19:16:16 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.