[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: <John.Salinardo_at_shell.com>
Date: 2007-07-10 19:20:19 CEST

It's even a Shell script - good stuff.
 
Thanks
 
Trevor
 
-----Original Message-----
From: Trevor Spackman [mailto:tspackma@myriad.com]
Sent: Tuesday, July 10, 2007 12:16 PM
To: Salinardo, John J STGP-STT/2; users@subversion.tigris.org
Cc: Trevor Spackman
Subject: RE: RE: controlling delete

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/"`" ] ; then

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

      exit 1

   fi

 

Trevor

  _____

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

 

Trevor,

 

An example would just be terrific. Thanks.

 

JS

 

-----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 define.

 

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

 

HTH,

Trevor

 

 

  _____

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.

Thanks,

 

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:20:25 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.