subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Schmidt <subversion-2...@ryandesign.com>
Subject Re: Server side svn:auto-props, how to set it correctly?
Date Fri, 16 Feb 2018 19:21:40 GMT

On Feb 16, 2018, at 09:20, Branko ─îibej wrote:

> On 16.02.2018 12:41, Ryan Schmidt wrote:
>> On Feb 15, 2018, at 14:18, Bo Berglund wrote:
>> 
>>> I would like to set our SVN server to enforce some file properties for
>>> commonly used files such as images and binary files as well as eol
>>> handling between client operating systems.
>> The server-side auto-props feature can *suggest* properties users should use, but
if you want to *enforce* that they are used, and prevent commits that don't, you have to write
a pre-commit hook script to do that.
> 
> That's not true at all. The client will honour the properties it knows
> about. Of course in the case of svn:auto-props, these are processed at
> 'svn add' and the user can change the results before committing; but
> they're not a suggestion by any means, they even override client-side
> configuration.

They are a suggestion, in that the user can deliberately unset the properties before committing,
or can use an older version of the Subversion client that predates that feature. If it is
desired to enforce that these properties are used, then a pre-commit hook script must be written
to enforce that. Based on the user's subsequent email, it sounds like he does not want to
enforce it.



Mime
View raw message