You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Datatal AB - Jonas Gauffin <jo...@datatal.se> on 2005/10/24 08:22:59 UTC
needs-lock
Hello
I'm new to Subversion. I've installed it and got everything running
(subversion, tortoisesvn and tortoisesvnscc).
I want "svn:needs-lock" to be default behaviour for all projects/files.
Is it possible to configure subversion in that way?
Regards,
Jonas
Re: needs-lock
Posted by Konrad Rosenbaum <ko...@silmor.de>.
On Monday 24 October 2005 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?
Why would you want to do this? Locks should only be necessary for non-ASCII
files and even then only if you don't have a decent mechanism for merging
two copies.
Konrad
Re: needs-lock
Posted by Alexander Thomas <kc...@gmail.com>.
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?
>
Read about automatic property settings and config section in svnbook
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.auto
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.confarea.opts.config
In subversion config file enable "enable-auto-props" under miscellany
section and add "* = svn:needs-locks"
in auto-props section.
-Alexander Thomas (AT)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: needs-lock
Posted by Ryan Schmidt <su...@ryandesign.com>.
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