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

Re: Embed version into code

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 13 May 2009 17:32:41 +0200

Andy Levy wrote:
> On Wed, May 13, 2009 at 11:06, Tony Bligh <TBligh_at_odenberg.com> wrote:
>> Just a quick question guys,
>>
>> Is it possible for the SVN commit number to be automatically embedded into
>> an assigned place in code prior to commit?
>
> You don't know what the revision number will be until the commit succeeds.
>
>> I have to do it manually at the moment, but is a good feature to relate the
>> target program commit version to the source build version.
>
> You want svn:keywords and $Id$.
> http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-propertypage.html#tsvn-dug-propertypage-dia-add

Or you can use the SubWCRev tool to get the revision of your working copy:
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

Stefan

-- 
       ___
  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=2239364
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2009-05-13 17:35:43 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.