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

Re: feature request - include files for various languages

From: Tobias Schäfer <tobiasschaefer_at_gmx.de>
Date: 2007-04-20 17:28:47 CEST

On Friday 20 April 2007 16:24, Balassa Márton wrote:
> This would be a nice feature: tsvn:infofile property. If set, value
> would be <programming language> CRLF <filename>, where the programming
> language is an identifier like 'delphi' or 'c++', and TSVN would
> generate the <filename> file, containing constant definitions of the
> current revision number and branch. For the language 'delphi', for
> instance, it would look like this:
>
> const SVN_REVISION = 1234;
> const SVN_BRANCH = 'HEAD';
>
> This way we could display the correct version information in the
> program's about box, or display a warning screen if it was built from
> the TEST revision, etc.

If you integrate SubWCRev into your build process you can get the revision
number:
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

To determine the branch set the special property svn:keywords and use $URL$
see
http://svnbook.red-bean.com/en/1.2/svn.advanced.props.html#svn.advanced.props.special.keywords

Tobias

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Apr 20 17:30:30 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.