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).
Thanks!
Halina Fedor
Received on Wed Jan 31 23:14:26 2007