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

Re: Best way to assign properties when file is committed?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-12-19 13:01:54 CET

On Dec 12, 2005, at 23:21, Jennifer Kesterson wrote:

> We are a small task just getting started with Subversion. We are
> wondering what is the *best* way to assign properties when a file
> (or files) is committed. Someone told us about his own method of
> running a nightly script on the whole repository but we've heard
> there is a slight risk in doing that.

I'd recommend a two-sided approach:

- Set up auto-props [1] in every client's Subversion config file. The
file specifies which properties to apply to which kind of files. Set
up a config file and distribute it to all users, for example through
email or by putting it on a web or FTP server.

- Set up a pre-commit hook script [2] which also accesses a copy this
config file and confirms that the items being committed conform to
the requirements, so that if someone forgets to use the config file,
or is using an outdated one, you can send them an error message and
advise them where to get the current config file.

[1] See the bottom of http://svnbook.red-bean.com/en/1.1/ch07.html

[2] Something like http://svn.haxx.se/users/
archive-2005-06/1091.shtml which doesn't use Subversion's native
config file though, I think, but rather its own.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 19 13:05:28 2005

This is an archived mail posted to the Subversion Users mailing list.