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

AW: Can I prevent a file from being modified?

From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Tue, 19 Jul 2011 10:57:16 +0200

Hi,

Von: Markus Schaber [mailto:m.schaber_at_3s-software.com]
> Von: David Myers [mailto:david.myers.24j74_at_gmail.com]
> > What I require is a method where I can make the file truly 'read
only'
> after a certain point.
>
> My suggestion is a special property you invent yourself (like
> FileFrozenReadonly), and a post-commit hook which prevents commits on
all
> files having that property set. You may even combine it with the
> svn:needs-lock property which makes SVN check out the files as
read-only.

Of course, I meant a pre-commit hook - a post-commit hook cannot prevent
the commit by concept. :-)

You could also combine that with the needs-lock property and a pre-lock
hook which prevents getting the lock on those files.

More information can be found at
http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html.

Best regards

Markus Schaber

___________________________
We software Automation.

3S-Smart Software Solutions GmbH
Markus Schaber | Developer
Memminger Str. 151 | 87439 Kempten | Germany | Tel. +49-831-54031-0 |
Fax +49-831-54031-50

Email: m.schaber@3s-software.com | Web: http://www.3s-software.com
CoDeSys internet forum: http://forum.3s-software.com
Download CoDeSys sample projects:
http://www.3s-software.com/index.shtml?sample_projects

Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner |
Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
Received on 2011-07-19 10:58:19 CEST

This is an archived mail posted to the Subversion Users mailing list.