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

Re: Name of the labels

From: Simon Large <simon.tortoisesvn_at_googlemail.com>
Date: 2007-11-16 10:48:21 CET

On 16/11/2007, Nuria de la Cruz <nuria.cruz.spo@infocaja.es> wrote:
> I would like to know if there is anyway to configurate the tool in order to
> create the label "automatically" or some rules (i.e, may I include the
> number the revision into the label, something like label.%revision% that I
> obtain /label.5.

When you say 'label' I assume you mean some sort of data you want to
include in your soure file, not the CVS meaning of label?

If you want the last-committed revision of the file you are in then
you need to look at using svn:keywords.

http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html

If you have a file called Revision.h and it includes the string
$Revision: $ AND you have made sure that the svn:keywords property for
that file includes 'Revision' then when the file is updated the
keyword field will be updated to $Revision: 5 $. Note that the
revision is for that one file only (just Revision.h).

If you want the highest committed revision in your whole working copy,
which is generally much more useful, you need to look at using
SubWCRev.exe which is part of the TSVN distribution.

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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Nov 16 10:48:27 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.