[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: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Thu, 8 Dec 2011 21:44:47 +0100

Hi,
Op 8 dec. 2011 21:19 schreef "Stefan Küng" <tortoisesvn_at_gmail.com> het
volgende:
>
> 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.
> >

Keep in mind that in subversion there is no version number per file, but a
repository wide revision number for each commit. Per file you can store the
latest revision number that 'touched' that file, but AFAIK you cannot use
svn keywords and/or subwcrev to store these numbers in a separate file.

> > 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.
> >
What would be the usecase for this file when using subversion?

> > 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].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2891676

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-12-08 21:44:56 CET

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