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

Re: new folder

From: Campbell Allan <campbell.allan_at_sword-ciboodle.com>
Date: Wed, 1 Feb 2012 10:50:51 +0000

On Monday 23 January 2012, sureshkumar nandakumar wrote:
> Hi,
>
> I would like to restrict new folder creation under in /branches.
> Currently we are using SVN perm files for restrict the read/write
> access control.
> We have around 1000 SVN users, we are in position to control the access
> level.
>
> Without our knowledge no one should not add any new folders under in
> /branches directory.
> Can anyone suggest me, how can i do this and how to get alert, if any
> new folder is created

I suppose this is tricky if you disregard other options of control. To be
honest, it isn't clear what you require from your message. Whether it's a
social solution you want to use and only get notification when a commit to the
branches directory occurs or if you want to prevent commits. The former I'd
use a simple post-commit email notification script.

To prevent commits I'd implement a pre-commit hook that restricts commits to
the branches directory unless the user and path are in a configuration file.
I'd go a bit further and add time based control to this too so that the window
for committing is limited. I'd place the configuration file in a separate
repository whose access you can completely control and have a post commit
script to export the file on the server. This allows for an audit and history
trail to be made.

-- 
Sword Ciboodle
www.sword-ciboodle.com
t +44 141 533 4000
www.sword-group.com
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company 
registered in Scotland with registered number SC143434 and whose 
registered office is at India of Inchinnan, Renfrewshire, UK, 
PA4 9LH) which is part of the Sword Group of companies.
This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you, 
please inform us and then delete it. If you are not the intended 
recipient(s), the use, disclosure, copying or distribution of any 
information contained within this email is prohibited. Messages to 
and from us may be monitored. If the content is not about the 
business of the Sword Group then the message is neither from nor 
sanctioned by us.
Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Received on 2012-02-01 11:51:30 CET

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.