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

Re: Revisjon autoprop?

From: Ryan Schmidt <subversion-2006q2_at_ryandesign.com>
Date: 2006-05-03 13:10:06 CEST

On May 3, 2006, at 12:52, Bjørn T Johansen wrote:

>>> Is it possible to use autoprop or similar to update revision of a
>>> file that has not changed?
>>> I.e. everytime I commit changes in any files, I want the new
>>> revision to be updated in one file, that has not
>>> changed...
>>
>> No. Perhaps you are looking for this?
>>
>> http://subversion.tigris.org/faq.html#version-value-in-source
>
> Well, not really... I need it in a java project using ant to build
> and I need to exchange a variable in a
> file every time I build... This might be done using regexp or
> similiar, but I don't know regexp well enough
> to use it...

Why doesn't the FAQ solution work for you? It seems like a perfect
match: every time you build, run svnversion to determine the revision
(s) of your working copy. Put the result into a generated source code
file which assigns the value to the variable.

I can help you with regular expressions if that's a problem...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 3 13:11:15 2006

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.