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

Re: needs-lock

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-24 11:53:48 CEST

On Oct 24, 2005, at 10:22, Datatal AB - Jonas Gauffin wrote:
> I want “svn:needs-lock” to be default behaviour for all projects/
> files. Is it possible to configure subversion in that way?

You can configure your client to set properties automatically; the
feature is called auto-props [1].

You can then write a pre-commit hook [2] to prevent people from
committing files that do not have the property set. This would cover
people who have forgotten to configure their client properly. The
message your pre-commit hook outputs could refer people to you or to
a web page where they should get the correct config file to install.

[1] http://svnbook.red-bean.com/en/1.1/ch07s02.html#svn-ch-7-sect-2.4

[2] http://svnbook.red-bean.com/en/1.1/ch05s02.html#svn-ch-5-sect-2.1

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Oct 24 11:58:19 2005

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.