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

Re: SubWCRev and properties

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-08-04 02:27:23 CEST

On 8/3/07, Hugh Robinson <robinson.nospam@gmail.com> wrote:
> 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.

Seems like redundancy (or a waste) to build something so custom to a
generic tool (SubWCRev plus this "enhancement" would only be useful to
you) when the same functionality could be integrated into your build
script using svn propget

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:25:46 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.