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

Re: Automatic replacement on commit

From: Matthieu BROUILLARD <matthieu.brouillard_at_agfa.com>
Date: Tue, 9 Sep 2008 06:38:49 -0700 (PDT)

I think that I need to explain a little better my needs.

I want to automatically manage some meta-information for files when a user
commits a modification.

Let's take an exemple of a file header before commit (first commit of file):

### start file ###
/*
 * $author$
 * $MyFunctionalProperty$
 */
...
### end file ###

Then after a commit of the file I will have my file filled in like this:

### start file ###
/*
 * $author: Matthieu BROUILLARD$
 * $MyFunctionalProperty: SomeValue$
 */
...
### end file ###

Where the property "MyFunctionalProperty" was expanded regarding some
functionnal code that I can provide to subversion.

So my initial question, that was not clear I must admit, becomes: How can I
handle this?
  * using keywords? then how can I provide the functionnal behaviour to
expand the property? is keyword managment open to contribution?
  * using a post commit-hook that will fire a process that will
automatically update the file and then commit it again?
  * using svn properties?
    + set the property before commit and then use in some way like keywords
in my file?
    + set the property before commit and use some piece of software to
modify the file after update? (this solution sucks because the file we be
marked as modified locally)

I hope my needs are more clear now.

Thanks for your proposals, time & cooperation.

Matthieu BROUILLARD

-- 
View this message in context: http://www.nabble.com/Automatic-replacement-on-commit-tp19374972p19392642.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-09 15:39:12 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.