[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: Nuria de la Cruz <nuria.cruz.spo_at_infocaja.es>
Date: 2007-11-19 17:11:13 CET

 

 

 

 

-----Mensaje original-----
De: Simon Large [mailto:simon.tortoisesvn@googlemail.com]
Enviado el: viernes, 16 de noviembre de 2007 10:48
Para: users@tortoisesvn.tigris.org
Asunto: Re: Name of the labels

 

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

image001.jpg
Received on Mon Nov 19 17:27:28 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.