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

RE: Re: Automatic replacement on commit

From: Roth, Pierre <pierre.roth_at_covidien.com>
Date: Tue, 9 Sep 2008 14:47:29 +0100

> 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?

Keywords are limited, please see SVN documentation here:
You will find that the 'Author' keyword is available but you customized
'MyFunctionalProperty' not.
> * using a post commit-hook that will fire a process that
> will automatically update the file and then commit it again?

You'll probably have to use a pre-commit hook instead of a post-commit
one. Just before committing, your script will change the file header and
on success, the file (or list of files) will be commited.

> * 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.

The best solution is the pre-commit hook call a home-made script. I've
been working with Clearcase for 5 years (so I know triggers) and the
_same_thing can be done with SVN hooks.
> Thanks for your proposals, time & cooperation.



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:47:57 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.