Re: Setting auto-props from Server side ?
From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Mon, 7 Jun 2010 00:11:14 -0500
On Jun 7, 2010, at 00:01, Ravi Roy wrote:
> Just curious if there is a way out to set auto-props for certain binary files on server side ?
No, there isn't, not a supported way, anyway.
This has come up countless times on the mailing list before. I'm sure you can find the discussions in the archives at http://svn.haxx.se/users/
The strategy I recommend is to install a pre-commit hook that rejects commits that do not conform to your guidelines (regarding properties or otherwise). Also install a Subversion config file on each client to automat the setting of properties that match your guidelines.
The other strategy is to write a post-commit hook that sets the properties you require. However this is not recommended because it means the server has to manage a working copy. It also means if a client commits a file that doesn't have the properties, the server will add them, and then the client's file will be immediately out of date and the user will have to run "svn up" to get the update from the server. The user won't expect to need to do this so this will be confusing to the user.
|
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.