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

Re: Substituting Rev keyword without the key name

From: Toma Catalin <ctoma2005_at_yahoo.com>
Date: Thu, 15 Sep 2011 03:45:36 -0700 (PDT)

Ok,thank you for your quick response.

Simon Large-6 wrote:
>
> On 15 September 2011 10:34, Toma Catalin <ctoma2005_at_yahoo.com> wrote:
>> Hello,I have a problem with svn keywords that i just cant figure out. I
>> want
>> to use the Revision keyword in a C++ header file, but it gets substituted
>> with something like $Rev:2. I want it to be cahnged to 2,since I use this
>> value for my project build version.
>>
>> I have something like this:
>>
>> #define VERSION "1,1,$Rev$"
>>
>> So i need the Rev keyword to be changed to 2, otherwise it's not a valid
>> version.
>>
>> Can somebody pls help me with this?
>
> SVN keywords will always have the keyword name prefixed, there is no
> way round that. Also remember that SVN keywords give the revision of
> the particular file they reside in, not the working copy as a whole.
> You probably want to use SubWCRev instead which will take a template
> file and produce a working file with particular keywords substituted
> completely. Look in the manual to find out how this works.
>
> Simon
>
> --
> :       ___
> :  oo  // \\      "De Chelonian Mobile"
> : (_,\/ \_/ \     TortoiseSVN
> :   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
> :   /_/   \_\     http://tortoisesvn.net
>
> ------------------------------------------------------
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2839182
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe_at_tortoisesvn.tigris.org].
>
>

-- 
View this message in context: http://old.nabble.com/Substituting-Rev-keyword-without-the-key-name-tp32470242p32470629.html
Sent from the tortoisesvn - users mailing list archive at Nabble.com.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2839190
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-09-15 12:45:54 CEST

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.