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

Re: Hunting for the revision number of a file

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: Tue, 5 May 2009 11:06:48 +0100

2009/5/5 Christian Treczoks <ct_at_braehler.com>:
> Dear mailing list members,
>
> I am currently working on an embedded application. The building process
> involves the usual compiling and linking step producing the flash-file,
> and a final "packaging" step that takes the flash file and adds some
> device specific parameters for "delivery". One of the parameters I need is
> the subversion revision number of the flash file. I can get this with "svn
> info [filename]" from the command line (I need the "last changed rev"
> value), but the packaging software should not call an external executable
> (Lotus Notes. Nuff said).
>
> What can I do to get this revision number? Can I call a function in one of
> the svn or tortoise dlls? Is it safe to parse the .svn/entries file for
> the information I need?

You can use SubWCRev to get this information. Either run it from the
command line or use the COM interface. If you cannot do either of
these in your packaging step then you can run it just before packaging
to generate a text file which includes the revision number.

http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html

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=2067527
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-05-05 12:06:57 CEST

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