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

[PROPOSAL] Expansion keywords/properties enhancement

From: Matthieu Brouillard <matthieu.brouillard_at_agfa.com>
Date: Wed, 10 Sep 2008 01:02:29 -0700 (PDT)

Hi all,

regarding the answers I had on the previous
http://www.nabble.com/Automatic-replacement-on-commit-td19374972.html thread
I posted regarding keyword expansion I would like to open a request for
enhancement.

My proposal is that it would be nice to have one of the two following
solutions implemented in future releases.

1/ keyword definition/expansion by third party tool:
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
With some kind of plugin/contribution mechanism, it would be possible to
handle owner keywords. You will then be able to commit file like this:

### start of file ###
...
$Author$
$MyKeyword$
...
### end of file ###

that will be expanded to:

### start of file ###
...
$Author: Matthieu Brouillard$
$MyKeyword: SomeProvidedOrCalculatedValue$
...
### end of file ###

2/ Usage of properties in the keyword expansion mechanism
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
As properties are versionned in the same way the files are, it should be
possible to use some keyword extended syntax to access properties values in
the file content.

### start of file ###
...
$Author$ // No particular syntax => fecth standard property
svn:keywords
$Rev$
...
$prop:MyProperty$ // extended syntax to access properties
$prop:copyright$
...
### end of file ###

Perhaps there should be some rules/ban on the usage of standard subversion
properties and on unversioned properties.

What do you think of the propsal?

Thanks for your sharing.

Matthieu Brouillard

-- 
View this message in context: http://www.nabble.com/-PROPOSAL--Expansion-keywords-properties-enhancement-tp19408635p19408635.html
Sent from the Subversion Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-09-10 10:02:45 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.