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

SubWCRev and properties

From: Hugh Robinson <robinson.nospam_at_gmail.com>
Date: 2007-08-03 23:56:02 CEST

First let me explain what I want to do...

I have my software build number, e.g. 1.0.2, to be inside the text of
some file before it is compiled. This is useful if you have an RC
resource file for example when compiling on Windows - or an
AssemblyInfo file when compiling code for .NET.

What I thought was - wouldn't it be a good idea to have this build
number stored in a property in my SVN repository as a property. That
way, if I ever checkout a copy of the code from some old revision
number, the property storing the build number would be the correct
"old" build number in that working copy. That, I think, is a desirable
thing.

But - how can I pull this build number out of the SVN property and
place it inside my text file? The answer I immediately thought of was
to have SubWCRev replace some placeholder with the value of one of my
user-defined Subversion property. However, SubWCRev can't do that as
far as I can see. Would this be a desirable enhancement to SubWCRev or
can someone suggest some other way of doing it? I suppose I could use
svnlook plus some sort of script code, but the enhancement to SubWCRev
would seem much cleaner.

Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Aug 4 02:14:00 2007

This is an archived mail posted to the TortoiseSVN Users mailing list.