On Tue, Jun 22, 2004 at 08:45:14AM +1000, Peter Donald wrote:
> Hi,
> 
> Leo Simons wrote:
> >Can these things be set globally for the entire repository? I can just 
> >imagine people getting this wrong once every few months after a client 
> >reinstall...
> 
> You could probably write a hook to verify that these 
> attributes are set before allowing an dd but I have not done 
> this before. Ask on infrastructure.

A pre-commit hook could verify the properties exist and are set properly.
The hook *cannot* modify/set the properties, however.

I'm not sure that such an example exists today, but it should not be a big
problem. A Python script using the bindings to the repository could
traverse the commit looking for added files, check the file extension
(such as .java), fetch the svn:eol-style property, and validate it. Maybe
50 lines (tops) in total.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Apache Excalibur Project -- URL: http://excalibur.apache.org/

Reply via email to