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