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

Enforcing locks for the entire repository

From: Fedor, Halina \(Mission Systems\) <Halina.Fedor_at_ngc.com>
Date: 2007-01-31 23:13:59 CET

Is there any kind of script that is available that will enforce a
repository-level (global) lock/unlock policy? The reason is because one
of our planned subversion repositories will contain mostly unmergeable
files...In other words, we want the needs-lock property to be applied to
the entire repository contents and any new files added to it.
I was not sure if the pre-lock-require-needs-lock.py would meet our
needs.. The description reads"..verifies that the PATH that USER is
attempting to lock has the svn:needs-lock property set on it, returning
success if it does"...implies that only files that already have the
needs-lock will enable a user to lock it for exclusive use; however,
will the needs-lock need to be set manually for each and every new file
that gets created or is there an automatic way we can do this via some
sort of other script?
We are also looking to enforce locks for only certain filetypes for our
source code repository. Didn't know if there might also be a way to do
this via a script (e.g. any new files that get committed that contain a
.pdf, .gif, etc. extension, for example, will automatically have their
svn:needs-lock property set to true upon commit).
Halina Fedor
Received on Wed Jan 31 23:14:26 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.