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

Re: Need possibilities to set Subversion property for keyword expansion

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 13 May 2009 04:00:02 -0500

On May 13, 2009, at 02:36, Ramachandran, Vishwanath(IE10) wrote:

> Pls confirm my assumption:
>
> 1 .Keyword expansion will be done on client side. (Replacing in
> "committed" document the "placeholder" with the keywords).

Yes, keyword expansion happens on the client.

> 2. The client will do this action only if the svn property is set
> (stored in repository). If the svn-property is not set client is not
> doing any keyword expansion.

Yes, keyword expansion will only happen if the svn:keywords property
is set, and then only for those keywords listed in that property.

> 3. This property can be created in different ways:
> a.) manually (e.g. on client subversion -> property dialog -> new
> property -> snv: keyword expansion)

It's "svn:keywords". It sounds like you are describing the procedure
for setting this property in some GUI client (perhaps TortoiseSVN).
Of course you can also set it using the command line client with "svn
propset svn:keywords '<list of keywords>' <file>".

> b.) automated on client: -> if in autoprops the corresponding entries
> are set the property will be set once the first commit happens.

Basically right. I think the properties are actually set the moment
you "svn add" the file.

> c.) The way you proposed it -> on the server with a script which
> checks
> if the property is not already set -> and if not set -> set the
> property.
>
> ->a.) and b.) we are doing already and we know that it works ->
> disadvantage: For a.) -> manual work, for b.) -> all clients need
> to get
> the autoprops set -> which is also manual work on each client -> error
> prone.

It is not error prone if you install a pre-commit hook to reject any
commit that does not conform to your requirements. Yes, there is a
little manual work, but only once for each client (until you change
your policy...)

> -> desired would be solution c [:)]

Someone else mentioned this can be done even without a server-side
working copy, so you're welcome to implement this if you feel it's a
better fit for you.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2232846

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-13 11:01:54 CEST

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.