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

Re: auto-props question

From: Ryan Schmidt <subversion-2006d_at_ryandesign.com>
Date: 2006-11-14 02:26:18 CET

On Nov 13, 2006, at 10:09, Guillaume Membré wrote:

> I have setup a svn repos via http. I would like to setup the repos to
> add automatically props on new files. I have seen that it can be done
> via the svnserve.conf
> here is my svnserve.conf :
> [config]
> enable-auto-props=true
> *.* = svn:keywords="Id"
> but it doesn't work.
> -=[gmembre]=(~/Mes documents/svn_temp/creerEAR)> svn add gui.java
> A gui.java
> -=[gmembre]=(~/Mes documents/svn_temp/creerEAR)> svn commit -m
> "commit test"
> Ajout creerEAR\gui.java
> Transmission des données ..
> Révision 32 propagée.
> -=[gmembre]=(~/Mes documents/svn_temp/creerEAR)> svn pl gui.java
> I must have done something wrong but I don't find what.
> Could anyone help me please ?

You misunderstand.

The server doesn't do it; the client does.

Those settings don't go in the server's svnserve.conf; they go in the
client's Subversion config file.

If you absolutely require certain files to have certain properties,
then you must additionally write a pre-commit hook script which
rejects commits of files that do not conform to your property

Additionally, the line

> *.* = svn:keywords="Id"

should instead be

*.* = svn:keywords=Id

(Do not surround the property value in quotes.)

or even better

* = svn:keywords=Id

(unless you really do want to exclude files whose names do not
include a period from this rule)

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 14 02:27:12 2006

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