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

Re: Server side svn:auto-props, how to set it correctly?

From: Ryan Schmidt <subversion-2018_at_ryandesign.com>
Date: Fri, 16 Feb 2018 13:21:40 -0600

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.
Received on 2018-02-16 20:21:57 CET

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.