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.
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]
Trevor,
An example would just be terrific. Thanks.
JS
-----Original Message-----
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]
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
Tel: +1-713-230-3047 000 Other Tel: 832-265-5099
|
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.