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

Re: Saving Version information with files

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 08 Dec 2011 21:18:55 +0100

On 08.12.2011 18:06, Manish Bansal wrote:
> Hello everyone,
> I am new to the forum looking for some help, I have already searched forum and google but could not able find solution to my requirement.
>
> I am wondering is it possible with TortoiseSVN tool with some settings to generate any xml, csv or some text file with is containing file names and current version against each file.
>
> I want that version info file to auto update everytime i do checking my files in the SVN and itself check in back to the SVN in the same folder.
>
> e.g. my repository (dir mycodefiles) is containing 3 file
> .\
> .\File1.txt
> .\File2.txt
> .\File3.txt
>
>
> ===========================
> Now i want another file to get auto generate something like versioninfo.xml or versioninfo.csv (or some custom name) in the same dir
>
> .\
> .\File1.txt
> .\File2.txt
> .\File3.txt
> .\versioninfo.xml
>
> ================================
>
> This versioninfo file should have file names and version info next to it
>
>
> <versioninfo>
> <File version="5">File1.txt</File>
> <File version="18">File2.txt</File>
> <File version="15">File3.txt</File>
> </versioninfo>

You can use the $Rev$ keyword in your files:
http://svnbook.red-bean.com/en/1.7/svn.advanced.props.special.keywords.html

or you can use SubWCRev (which is part of TSVN) to replace revisions in
a build script (either call the command line command or use its COM
object in scripting languages):
http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev-keywords.html
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=2891669
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-12-08 21:19:10 CET

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.